OSDN Git Service

change how we store Region data internally
authorMathias Agopian <mathias@google.com>
Fri, 31 Aug 2012 21:31:40 +0000 (14:31 -0700)
committerMathias Agopian <mathias@google.com>
Sat, 1 Sep 2012 01:38:22 +0000 (18:38 -0700)
commit3ab68558fa5a4b8f792a54965a010f03385bd271
treeb2cc0e26815aff54e0d78480a7bff93288890427
parent4c0a170585d5c8a1f3508ac55f799ebaf86e91db
change how we store Region data internally

We used to keep the bounds of the region as a
separate rectangle. Instead we now store it as the last
element of the Vector<> of Rects.

This has the benefit of being slightly more efficient when
copying regions and reduces the overhead of small regions,
but more importantly will allow us to export the underlaying
SharedBuffer (eventually).

Change-Id: I80790e4fb1a09a747a5616000cfef852ac4ce9e9
include/ui/Region.h
libs/ui/Region.cpp