summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-05-08 16:32:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-08 16:32:27 +0000
commit98a13a1475682870f5121446f9c80aa18855c884 (patch)
tree74ef843d466c179373d47f9fdf761ef096eed199 /services/surfaceflinger
parentdeb6baa6b349cc5c176b911bcd1e551d15404bf7 (diff)
parent12e0a27aa30d9db10eafe88904d3eb8fdcbcfa71 (diff)
downloadframeworks_native-98a13a1475682870f5121446f9c80aa18855c884.zip
frameworks_native-98a13a1475682870f5121446f9c80aa18855c884.tar.gz
frameworks_native-98a13a1475682870f5121446f9c80aa18855c884.tar.bz2
Merge "SF: Apply pending transactions to new sidebands" into mnc-dev
Diffstat (limited to 'services/surfaceflinger')
-rw-r--r--services/surfaceflinger/Layer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 9fb94dd..7b104c3 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -1125,6 +1125,10 @@ Region Layer::latchBuffer(bool& recomputeVisibleRegions)
if (android_atomic_acquire_cas(true, false, &mSidebandStreamChanged) == 0) {
// mSidebandStreamChanged was true
mSidebandStream = mSurfaceFlingerConsumer->getSidebandStream();
+ if (mSidebandStream != NULL) {
+ setTransactionFlags(eTransactionNeeded);
+ mFlinger->setTransactionFlags(eTraversalNeeded);
+ }
recomputeVisibleRegions = true;
const State& s(getDrawingState());