From a3dc55f83ab583e0a66b893c71b849afa046770a Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 28 Sep 2012 13:55:44 -0700 Subject: 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 --- libs/hwui/Snapshot.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/hwui/Snapshot.cpp') 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); -- cgit v1.2.3-59-g8ed1b