Skip to content

Commit aac9948

Browse files
pixelflingerAndroid (Google) Code Review
authored andcommitted
Merge "a window could get stuck to gpu composition"
2 parents 3169e4b + 7df03c0 commit aac9948

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/surfaceflinger/Layer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,12 @@ void Layer::lockPageFlip(bool& recomputeVisibleRegions)
459459
mActiveBuffer = mSurfaceTexture->getCurrentBuffer();
460460
mFrameLatencyNeeded = true;
461461

462+
if (oldActiveBuffer == NULL && mActiveBuffer != NULL) {
463+
// the first time we receive a buffer, we need to trigger a
464+
// geometry invalidation.
465+
mFlinger->invalidateHwcGeometry();
466+
}
467+
462468
const Rect crop(mSurfaceTexture->getCurrentCrop());
463469
const uint32_t transform(mSurfaceTexture->getCurrentTransform());
464470
const uint32_t scalingMode(mSurfaceTexture->getCurrentScalingMode());

0 commit comments

Comments
 (0)