diff options
author | Romain Guy <romainguy@google.com> | 2012-09-28 13:55:44 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2012-09-28 13:55:44 -0700 |
commit | a3dc55f83ab583e0a66b893c71b849afa046770a (patch) | |
tree | bce89bc2bccaa9e4e9eb334b5c3185e360c02dc0 /libs/hwui/Matrix.cpp | |
parent | 3cd961292e877cc5fac146290421e9e67aa553a2 (diff) |
Fix a couple of rendering issues
Bug #7253839
1. Make sure we don't make GL calls while recording display lists
2. Disable an early and trivial clip optimization in font renderer
when a perspective transformation is used on the Canvas
Change-Id: I3f1052164239329346854f72d0a0d401fbfecf06
Diffstat (limited to 'libs/hwui/Matrix.cpp')
-rw-r--r-- | libs/hwui/Matrix.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/Matrix.cpp b/libs/hwui/Matrix.cpp index 87add179bd69..a924362bf312 100644 --- a/libs/hwui/Matrix.cpp +++ b/libs/hwui/Matrix.cpp @@ -73,6 +73,11 @@ bool Matrix4::isIdentity() const { return mIsIdentity; } +bool Matrix4::isPerspective() const { + return data[kPerspective0] != 0.0f || data[kPerspective1] != 0.0f || + data[kPerspective2] != 1.0f; +} + void Matrix4::load(const float* v) { memcpy(data, v, sizeof(data)); // TODO: Do something smarter here |