commit | 9f96145725ff3f265712d607d19078fb91a5c8ec | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Mon Jun 29 18:46:37 2009 -0700 |
committer | Mathias Agopian <mathias@google.com> | Mon Jun 29 18:46:37 2009 -0700 |
tree | 353412441f6f9e59e3cafcf29a2189d510b19d9a | |
parent | 446ff920387052887bc905cc0cc439a7e3c38b83 [diff] [blame] |
Region::makeBoundsSelf() efficiently turns a region to its bounds
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 @@ return *this; } +Region& Region::makeBoundsSelf() +{ + mStorage.clear(); + return *this; +} + void Region::clear() { mBounds.clear();