From 4c2547fa9244e78115cde0a259291053108c3dc7 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 11 Jun 2013 16:19:24 -0700 Subject: Avoid 9patch cache lookups when possible This optimization saves up to 0.3ms per frame on the Play Store's front page, on a Nexus 4 device. Change-Id: Iaa4ef33c6e3b37e175efd5b9eea9ef59b43f14f3 --- libs/hwui/Program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/hwui/Program.cpp') diff --git a/libs/hwui/Program.cpp b/libs/hwui/Program.cpp index c127d684be32..9e4670e62dcd 100644 --- a/libs/hwui/Program.cpp +++ b/libs/hwui/Program.cpp @@ -172,7 +172,7 @@ void Program::set(const mat4& projectionMatrix, const mat4& modelViewMatrix, // up and to the left. // This offset value is based on an assumption that some hardware may use as // little as 12.4 precision, so we offset by slightly more than 1/16. - p.translate(.065, .065, 0); + p.translate(.065, .065); glUniformMatrix4fv(projection, 1, GL_FALSE, &p.data[0]); } mProjection = projectionMatrix; -- cgit v1.2.3-59-g8ed1b