summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2011-04-29 10:23:42 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-04-29 10:23:42 -0700
commit1ba8543723c781d574f068d984df9f40c9ac33fd (patch)
treedc00551f80fc56121de3dfebaa20a87fad287c7f
parent52749c0b1117a05a9c853b7d54f69a281f69cf3c (diff)
parent7ae9f08a179fa3b312b80826cfc3c6dc97b792ec (diff)
downloadframeworks_base-1ba8543723c781d574f068d984df9f40c9ac33fd.zip
frameworks_base-1ba8543723c781d574f068d984df9f40c9ac33fd.tar.gz
frameworks_base-1ba8543723c781d574f068d984df9f40c9ac33fd.tar.bz2
am 7ae9f08a: Merge "Fixed to call computeVisibleRegions() when transparent value changed"
* commit '7ae9f08a179fa3b312b80826cfc3c6dc97b792ec': Fixed to call computeVisibleRegions() when transparent value changed
-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;
}