* commit '9030333a4ec170baf90a7c62cc7c19970f12a5f5': Recompute visible regions more vigorously
This commit is contained in:
commit
f10272b12b
@ -655,7 +655,7 @@ Region Layer::latchBuffer(bool& recomputeVisibleRegions)
|
|||||||
if (oldActiveBuffer == NULL) {
|
if (oldActiveBuffer == NULL) {
|
||||||
// the first time we receive a buffer, we need to trigger a
|
// the first time we receive a buffer, we need to trigger a
|
||||||
// geometry invalidation.
|
// geometry invalidation.
|
||||||
mFlinger->invalidateHwcGeometry();
|
recomputeVisibleRegions = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect crop(mSurfaceTexture->getCurrentCrop());
|
Rect crop(mSurfaceTexture->getCurrentCrop());
|
||||||
@ -668,7 +668,7 @@ Region Layer::latchBuffer(bool& recomputeVisibleRegions)
|
|||||||
mCurrentCrop = crop;
|
mCurrentCrop = crop;
|
||||||
mCurrentTransform = transform;
|
mCurrentTransform = transform;
|
||||||
mCurrentScalingMode = scalingMode;
|
mCurrentScalingMode = scalingMode;
|
||||||
mFlinger->invalidateHwcGeometry();
|
recomputeVisibleRegions = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oldActiveBuffer != NULL) {
|
if (oldActiveBuffer != NULL) {
|
||||||
@ -676,7 +676,7 @@ Region Layer::latchBuffer(bool& recomputeVisibleRegions)
|
|||||||
uint32_t bufHeight = mActiveBuffer->getHeight();
|
uint32_t bufHeight = mActiveBuffer->getHeight();
|
||||||
if (bufWidth != uint32_t(oldActiveBuffer->width) ||
|
if (bufWidth != uint32_t(oldActiveBuffer->width) ||
|
||||||
bufHeight != uint32_t(oldActiveBuffer->height)) {
|
bufHeight != uint32_t(oldActiveBuffer->height)) {
|
||||||
mFlinger->invalidateHwcGeometry();
|
recomputeVisibleRegions = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user