am 5bf786d8: surfaceflinger: recompute visibility after sideband stream change

* commit '5bf786d8f00ff8eee64ebf330dac55e33a0f97b1':
  surfaceflinger: recompute visibility after sideband stream change
This commit is contained in:
Jesse Hall 2014-10-01 22:38:18 +00:00 committed by Android Git Automerger
commit e245cdcc00

View File

@ -1042,6 +1042,10 @@ Region Layer::latchBuffer(bool& recomputeVisibleRegions)
if (android_atomic_acquire_cas(true, false, &mSidebandStreamChanged) == 0) { if (android_atomic_acquire_cas(true, false, &mSidebandStreamChanged) == 0) {
// mSidebandStreamChanged was true // mSidebandStreamChanged was true
mSidebandStream = mSurfaceFlingerConsumer->getSidebandStream(); mSidebandStream = mSurfaceFlingerConsumer->getSidebandStream();
recomputeVisibleRegions = true;
const State& s(getDrawingState());
return s.transform.transform(Region(Rect(s.active.w, s.active.h)));
} }
Region outDirtyRegion; Region outDirtyRegion;