* commit 'c868c78b516d5fd3f5d36dc916baab6c98800d8f': surfaceflinger: recompute visibility after sideband stream change
This commit is contained in:
commit
18507fe470
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user