From 710f46d9d6a5bf9ea1c1833384caf61e1934124f Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 17 Sep 2012 17:25:49 -0700 Subject: Polygonal rendering of simple fill shapes bug:4419017 Change-Id: If0428e1732139786cba15f54b285d880e4a56b89 --- libs/hwui/Matrix.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/hwui/Matrix.cpp') diff --git a/libs/hwui/Matrix.cpp b/libs/hwui/Matrix.cpp index 7348f4d834dd..87add179bd69 100644 --- a/libs/hwui/Matrix.cpp +++ b/libs/hwui/Matrix.cpp @@ -55,21 +55,21 @@ void Matrix4::loadIdentity() { mSimpleMatrix = true; } -bool Matrix4::changesBounds() { +bool Matrix4::changesBounds() const { return !(data[0] == 1.0f && data[1] == 0.0f && data[2] == 0.0f && data[4] == 0.0f && data[5] == 1.0f && data[6] == 0.0f && data[8] == 0.0f && data[9] == 0.0f && data[10] == 1.0f); } -bool Matrix4::isPureTranslate() { +bool Matrix4::isPureTranslate() const { return mSimpleMatrix && data[kScaleX] == 1.0f && data[kScaleY] == 1.0f; } -bool Matrix4::isSimple() { +bool Matrix4::isSimple() const { return mSimpleMatrix; } -bool Matrix4::isIdentity() { +bool Matrix4::isIdentity() const { return mIsIdentity; } -- cgit v1.2.3-59-g8ed1b