summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2011-04-29 09:59:30 -0700
committerAndroid Code Review <code-review@android.com>2011-04-29 09:59:30 -0700
commit56b79aa8164fe015198a549130d428a74cbe814b (patch)
tree5b297936d7c0ac1eabe675fdd10bfb84ed3b36da /services/surfaceflinger
parent1f824b15feb4a26f029bfdc1e2bd954530340c3c (diff)
parent2168e2de244500d912dbeb43ac4065c327baddf5 (diff)
downloadframeworks_native-56b79aa8164fe015198a549130d428a74cbe814b.zip
frameworks_native-56b79aa8164fe015198a549130d428a74cbe814b.tar.gz
frameworks_native-56b79aa8164fe015198a549130d428a74cbe814b.tar.bz2
Merge "Fixed to call computeVisibleRegions() when transparent value changed"
Diffstat (limited to 'services/surfaceflinger')
-rw-r--r--services/surfaceflinger/LayerBuffer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/surfaceflinger/LayerBuffer.cpp b/services/surfaceflinger/LayerBuffer.cpp
index 23506cf..55d859d 100644
--- a/services/surfaceflinger/LayerBuffer.cpp
+++ b/services/surfaceflinger/LayerBuffer.cpp
@@ -93,6 +93,9 @@ bool LayerBuffer::needsBlending() const {
}
void LayerBuffer::setNeedsBlending(bool blending) {
+ if (mNeedsBlending != blending) {
+ mFlinger->invalidateLayerVisibility(this);
+ }
mNeedsBlending = blending;
}