Fixed to call computeVisibleRegions() when transparent value changed

When some Surfaces are overlapping and one of them changed to
transparent or opaque, the back Surfaces should appear or
disappear. This patch calls SurfaceFlinger::computeVisibleRegions()
to re-calculate region of each Surface to implement the behavior.

Change-Id: Iffb1caf1b4ce28dff252e114fe5b9b07d9c84a6f
This commit is contained in:
Ichitaro Kohara
2011-02-17 12:31:23 +01:00
committed by Johan Redestig
parent 93552de8e3
commit fbce6ac4cb

View File

@@ -93,6 +93,9 @@ bool LayerBuffer::needsBlending() const {
}
void LayerBuffer::setNeedsBlending(bool blending) {
if (mNeedsBlending != blending) {
mFlinger->invalidateLayerVisibility(this);
}
mNeedsBlending = blending;
}