diff options
author | Mathias Agopian <mathias@google.com> | 2009-06-29 18:46:37 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-06-29 18:46:37 -0700 |
commit | 276826bae2eb6d25c4abb1c5f665d2876c65e50c (patch) | |
tree | d4784e3c21f41a2017d1a2c39d7873eca493cdf2 /libs | |
parent | 5fc1b60e7f8b19d7d7a2244c0e1e005c7ed91659 (diff) | |
download | frameworks_base-276826bae2eb6d25c4abb1c5f665d2876c65e50c.zip frameworks_base-276826bae2eb6d25c4abb1c5f665d2876c65e50c.tar.gz frameworks_base-276826bae2eb6d25c4abb1c5f665d2876c65e50c.tar.bz2 |
Region::makeBoundsSelf() efficiently turns a region to its bounds
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ui/Region.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp index 2e6b241..b400a92 100644 --- a/libs/ui/Region.cpp +++ b/libs/ui/Region.cpp @@ -87,6 +87,12 @@ Region& Region::operator = (const Region& rhs) return *this; } +Region& Region::makeBoundsSelf() +{ + mStorage.clear(); + return *this; +} + void Region::clear() { mBounds.clear(); |