diff options
author | Mathias Agopian <mathias@google.com> | 2011-04-28 19:50:21 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-04-28 19:50:21 -0700 |
commit | 9cdb01da71934e98b6732db0f5758ea4edd5d5c7 (patch) | |
tree | 545ad8372a02f7ac2a3a24221c7abec5d9dedbc1 /include/ui/Region.h | |
parent | e960d3a874ef21b1f2415b3f5bbef72279fb15bd (diff) | |
download | frameworks_native-9cdb01da71934e98b6732db0f5758ea4edd5d5c7.zip frameworks_native-9cdb01da71934e98b6732db0f5758ea4edd5d5c7.tar.gz frameworks_native-9cdb01da71934e98b6732db0f5758ea4edd5d5c7.tar.bz2 |
get rid of dependency on copybit HAL module
Change-Id: Ia608099a2426c11a91d33063ba53c93e1eccb428
Diffstat (limited to 'include/ui/Region.h')
-rw-r--r-- | include/ui/Region.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/ui/Region.h b/include/ui/Region.h index 925fd06..6c9a620 100644 --- a/include/ui/Region.h +++ b/include/ui/Region.h @@ -24,8 +24,6 @@ #include <ui/Rect.h> -#include <hardware/copybit.h> - namespace android { // --------------------------------------------------------------------------- @@ -183,27 +181,6 @@ Region& Region::operator -= (const Region& rhs) { Region& Region::operator += (const Point& pt) { return translateSelf(pt.x, pt.y); } - -// --------------------------------------------------------------------------- - -struct region_iterator : public copybit_region_t { - region_iterator(const Region& region) - : b(region.begin()), e(region.end()) { - this->next = iterate; - } -private: - static int iterate(copybit_region_t const * self, copybit_rect_t* rect) { - region_iterator const* me = static_cast<region_iterator const*>(self); - if (me->b != me->e) { - *reinterpret_cast<Rect*>(rect) = *me->b++; - return 1; - } - return 0; - } - mutable Region::const_iterator b; - Region::const_iterator const e; -}; - // --------------------------------------------------------------------------- }; // namespace android |