diff options
| author | 2009-09-30 12:48:47 -0700 | |
|---|---|---|
| committer | 2009-09-30 12:48:47 -0700 | |
| commit | 70cab91229c3c2ca4bb75ab63b552ac7d1a6a8bb (patch) | |
| tree | 09cfd67a7edd7be37754e5ce5fe6d01b3ffd9f5d /libs/surfaceflinger/LayerBase.cpp | |
| parent | e1b6f24423d61b7892e4a59f5a65b04231526712 (diff) | |
invalidate the surface when the physical changes
Diffstat (limited to 'libs/surfaceflinger/LayerBase.cpp')
| -rw-r--r-- | libs/surfaceflinger/LayerBase.cpp | 6 |
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; |