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:
parent
3edab5a44e
commit
2168e2de24
@ -93,6 +93,9 @@ bool LayerBuffer::needsBlending() const {
|
||||
}
|
||||
|
||||
void LayerBuffer::setNeedsBlending(bool blending) {
|
||||
if (mNeedsBlending != blending) {
|
||||
mFlinger->invalidateLayerVisibility(this);
|
||||
}
|
||||
mNeedsBlending = blending;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user