From 6656dbc81273424d9b4bf78c42a4e179dbe1cb71 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 30 Sep 2009 12:48:47 -0700 Subject: invalidate the surface when the physical changes --- libs/surfaceflinger/LayerBase.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/surfaceflinger/LayerBase.cpp') 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; -- cgit v1.2.3-59-g8ed1b