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
commit6656dbc81273424d9b4bf78c42a4e179dbe1cb71 (patch)
tree8a4099c504d28f26b1e8cc33a4ff7b70303f12c1 /libs/surfaceflinger/LayerBase.cpp
parent7e4a587f6038bcf9b58ca615fce9e52fd47e30c3 (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 df1407d4a1..d83c8429eb 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;