diff options
author | Mathias Agopian <mathias@google.com> | 2013-04-02 18:30:32 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-04-02 18:30:32 -0700 |
commit | 2ca79399b933935eb1b6c0ec1f746f8c4475369c (patch) | |
tree | 3fbffc3056ceac9214aa8bfeed8cce8f6d9446bc /include/ui | |
parent | 128fcea1c6f8b5f66a5d88a80789e65aac798416 (diff) | |
download | frameworks_native-2ca79399b933935eb1b6c0ec1f746f8c4475369c.tar.gz frameworks_native-2ca79399b933935eb1b6c0ec1f746f8c4475369c.tar.bz2 frameworks_native-2ca79399b933935eb1b6c0ec1f746f8c4475369c.zip |
latch transparent region hint only when we get a new frame
since the transparent region hint really depends on the
content of the window containing the SurfaceView
(it's calculated by the view hierarchy based on
overlapping views), it makes sense to latch it only when
the content of the window (the app) changes.
This should help fixing drawing artifacts when changing the
layout of a window containing a SurfaceView.
Bug: 8511430
Change-Id: Ic3aa668495293cb4d82a2cd7dcf3b6a337287678
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/Region.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ui/Region.h b/include/ui/Region.h index ffcd429ae..ce91f3b69 100644 --- a/include/ui/Region.h +++ b/include/ui/Region.h @@ -108,6 +108,10 @@ public: inline Region& operator += (const Point& pt); + // returns true if the regions share the same underlying storage + bool isTriviallyEqual(const Region& region) const; + + /* various ways to access the rectangle list */ |