summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-11-30 11:15:41 -0800
committerMathias Agopian <mathias@google.com>2009-11-30 11:15:41 -0800
commitc61de17f143b5f806c5bab9cc58910a322302b70 (patch)
treef667e56ee0bce443f84bfcb6d40e781fb1ec167d
parentdef563c45163fea9b53fc4627672fd43d4894b2f (diff)
downloadframeworks_native-c61de17f143b5f806c5bab9cc58910a322302b70.zip
frameworks_native-c61de17f143b5f806c5bab9cc58910a322302b70.tar.gz
frameworks_native-c61de17f143b5f806c5bab9cc58910a322302b70.tar.bz2
fixed [2260070] display stopped updating
always check that the visible region isn't empty after all visible regions are recomputed clear he freeze-lock if it is.
-rw-r--r--libs/surfaceflinger/Layer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/surfaceflinger/Layer.cpp b/libs/surfaceflinger/Layer.cpp
index f5a5a0b..f11bf18 100644
--- a/libs/surfaceflinger/Layer.cpp
+++ b/libs/surfaceflinger/Layer.cpp
@@ -515,6 +515,11 @@ void Layer::unlockPageFlip(
dirtyRegion.andSelf(visibleRegionScreen);
outDirtyRegion.orSelf(dirtyRegion);
}
+ if (visibleRegionScreen.isEmpty()) {
+ // an invisible layer should not hold a freeze-lock
+ // (because it may never be updated and thereore never release it)
+ mFreezeLock.clear();
+ }
}
void Layer::finishPageFlip()