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/Matrix.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/hwui/Matrix.cpp') 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 -- cgit v1.2.3-59-g8ed1b