diff options
| author | 2012-09-28 13:55:44 -0700 | |
|---|---|---|
| committer | 2012-09-28 13:55:44 -0700 | |
| commit | a3dc55f83ab583e0a66b893c71b849afa046770a (patch) | |
| tree | bce89bc2bccaa9e4e9eb334b5c3185e360c02dc0 /libs/hwui/Snapshot.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/Snapshot.cpp')
| -rw-r--r-- | libs/hwui/Snapshot.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Snapshot.cpp b/libs/hwui/Snapshot.cpp index 4484676bc3f7..fbc84554dcdf 100644 --- a/libs/hwui/Snapshot.cpp +++ b/libs/hwui/Snapshot.cpp @@ -178,6 +178,10 @@ void Snapshot::setClip(float left, float top, float right, float bottom) { flags |= Snapshot::kFlagClipSet; } +bool Snapshot::hasPerspectiveTransform() const { + return transform->isPerspective(); +} + const Rect& Snapshot::getLocalClip() { mat4 inverse; inverse.loadInverse(*transform); |