summaryrefslogtreecommitdiff
path: root/libs/surfaceflinger/LayerBase.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-09-30 12:48:47 -0700
committer Mathias Agopian <mathias@google.com> 2009-09-30 12:48:47 -0700
commit70cab91229c3c2ca4bb75ab63b552ac7d1a6a8bb (patch)
tree09cfd67a7edd7be37754e5ce5fe6d01b3ffd9f5d /libs/surfaceflinger/LayerBase.cpp
parente1b6f24423d61b7892e4a59f5a65b04231526712 (diff)
invalidate the surface when the physical changes
Diffstat (limited to 'libs/surfaceflinger/LayerBase.cpp')
-rw-r--r--libs/surfaceflinger/LayerBase.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/surfaceflinger/LayerBase.cpp b/libs/surfaceflinger/LayerBase.cpp
index df1407d4a106..d83c8429eb3b 100644
--- a/libs/surfaceflinger/LayerBase.cpp
+++ b/libs/surfaceflinger/LayerBase.cpp
@@ -202,6 +202,12 @@ uint32_t LayerBase::doTransaction(uint32_t flags)
editTemp.h = temp.requested_h;
}
+ if ((front.w != temp.w) || (front.h != temp.h)) {
+ // invalidate and recompute the visible regions if needed
+ flags |= Layer::eVisibleRegion;
+ this->contentDirty = true;
+ }
+
if (temp.sequence != front.sequence) {
// invalidate and recompute the visible regions if needed
flags |= eVisibleRegion;