diff options
author | Romain Guy <romainguy@android.com> | 2010-09-01 15:13:49 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2010-09-01 15:49:25 -0700 |
commit | 8aef54fa17f2a3753d9a8f2027629bc480088f69 (patch) | |
tree | b4b9e8130e46e3e2271f6e9d55aa988e1f172655 /libs/hwui/Rect.h | |
parent | dbecc24a4ed4e9c24fc03db19038ee45cf7a0b1d (diff) | |
download | frameworks_base-8aef54fa17f2a3753d9a8f2027629bc480088f69.zip frameworks_base-8aef54fa17f2a3753d9a8f2027629bc480088f69.tar.gz frameworks_base-8aef54fa17f2a3753d9a8f2027629bc480088f69.tar.bz2 |
Add support for Canvas flags on save.
This is required for the rewrite of layers support.
Change-Id: I5c0867dcf5aeb0392c8d0fbab05febb0eaff70d9
Diffstat (limited to 'libs/hwui/Rect.h')
-rw-r--r-- | libs/hwui/Rect.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Rect.h b/libs/hwui/Rect.h index 7be0c34..6b22c2b 100644 --- a/libs/hwui/Rect.h +++ b/libs/hwui/Rect.h @@ -91,11 +91,11 @@ struct Rect { set(r.left, r.top, r.right, r.bottom); } - float getWidth() const { + inline float getWidth() const { return right - left; } - float getHeight() const { + inline float getHeight() const { return bottom - top; } |