diff options
author | Chris Craik <ccraik@google.com> | 2012-09-17 17:25:49 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-09-20 13:08:20 -0700 |
commit | 710f46d9d6a5bf9ea1c1833384caf61e1934124f (patch) | |
tree | 5dbc56cf9b6bb957f9cbdaaff7283d44897b265d /libs/hwui/Matrix.cpp | |
parent | 5ca88a103c2841b64bfa01b4848aec4b8aa64687 (diff) |
Polygonal rendering of simple fill shapes
bug:4419017
Change-Id: If0428e1732139786cba15f54b285d880e4a56b89
Diffstat (limited to 'libs/hwui/Matrix.cpp')
-rw-r--r-- | libs/hwui/Matrix.cpp | 8 |
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; } |