We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3169e4b + 7df03c0 commit aac9948Copy full SHA for aac9948
services/surfaceflinger/Layer.cpp
@@ -459,6 +459,12 @@ void Layer::lockPageFlip(bool& recomputeVisibleRegions)
459
mActiveBuffer = mSurfaceTexture->getCurrentBuffer();
460
mFrameLatencyNeeded = true;
461
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
+
468
const Rect crop(mSurfaceTexture->getCurrentCrop());
469
const uint32_t transform(mSurfaceTexture->getCurrentTransform());
470
const uint32_t scalingMode(mSurfaceTexture->getCurrentScalingMode());
0 commit comments