From 8aef54fa17f2a3753d9a8f2027629bc480088f69 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Wed, 1 Sep 2010 15:13:49 -0700 Subject: Add support for Canvas flags on save. This is required for the rewrite of layers support. Change-Id: I5c0867dcf5aeb0392c8d0fbab05febb0eaff70d9 --- libs/hwui/Rect.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/hwui/Rect.h') 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; } -- cgit v1.1