summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Rect.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-09-01 15:13:49 -0700
committerRomain Guy <romainguy@android.com>2010-09-01 15:49:25 -0700
commit8aef54fa17f2a3753d9a8f2027629bc480088f69 (patch)
treeb4b9e8130e46e3e2271f6e9d55aa988e1f172655 /libs/hwui/Rect.h
parentdbecc24a4ed4e9c24fc03db19038ee45cf7a0b1d (diff)
downloadframeworks_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.h4
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;
}