summaryrefslogtreecommitdiff
path: root/libs/hwui/Matrix.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2012-09-21 11:03:59 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2012-09-21 11:03:59 -0700
commit61d37041ac76a95aedb98d3550bb5efa33d898a1 (patch)
treecffd7916bceba166b3cff01054a092ca52c7bc44 /libs/hwui/Matrix.cpp
parent739bc9e3f51c203fc0b58c30d67cacda985e95c6 (diff)
parent710f46d9d6a5bf9ea1c1833384caf61e1934124f (diff)
Merge "Polygonal rendering of simple fill shapes" into jb-mr1-dev
Diffstat (limited to 'libs/hwui/Matrix.cpp')
-rw-r--r--libs/hwui/Matrix.cpp8
1 files changed, 4 insertions, 4 deletions
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;
}