summaryrefslogtreecommitdiffstats
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
commit7ae9f08a179fa3b312b80826cfc3c6dc97b792ec (patch)
tree7d9b8e8544afeb053adcae6f6237743ce87d4147
parent03daee6380772b0ab167a7b28e37d7a21ec89c86 (diff)
parentfbce6ac4cb9aebd795603fc2e315f6934bdabda7 (diff)
downloadframeworks_base-7ae9f08a179fa3b312b80826cfc3c6dc97b792ec.zip
frameworks_base-7ae9f08a179fa3b312b80826cfc3c6dc97b792ec.tar.gz
frameworks_base-7ae9f08a179fa3b312b80826cfc3c6dc97b792ec.tar.bz2
Merge "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;
}