commit | 8aef54fa17f2a3753d9a8f2027629bc480088f69 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@android.com> | Wed Sep 01 15:13:49 2010 -0700 |
committer | Romain Guy <romainguy@android.com> | Wed Sep 01 15:49:25 2010 -0700 |
tree | b4b9e8130e46e3e2271f6e9d55aa988e1f172655 | |
parent | dbecc24a4ed4e9c24fc03db19038ee45cf7a0b1d [diff] [blame] |
Add support for Canvas flags on save. This is required for the rewrite of layers support. Change-Id: I5c0867dcf5aeb0392c8d0fbab05febb0eaff70d9
diff --git a/libs/hwui/Rect.h b/libs/hwui/Rect.h index 7be0c340..6b22c2b 100644 --- a/libs/hwui/Rect.h +++ b/libs/hwui/Rect.h
@@ -91,11 +91,11 @@ 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; }