summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Rect.h
diff options
context:
space:
mode:
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;
}