From 4bb942083a0d4db746adf95349108dd8ef842e32 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 12 Oct 2010 15:59:26 -0700 Subject: Optimize 9patch rendering. This change detects empty quads in 9patches and removes them from the mesh to avoid unnecessary blending. Change-Id: I4500566fb4cb6845d64dcb59b522c0be7a0ec704 --- libs/hwui/OpenGLDebugRenderer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/hwui/OpenGLDebugRenderer.cpp') diff --git a/libs/hwui/OpenGLDebugRenderer.cpp b/libs/hwui/OpenGLDebugRenderer.cpp index b9583e522250..d492e2318761 100644 --- a/libs/hwui/OpenGLDebugRenderer.cpp +++ b/libs/hwui/OpenGLDebugRenderer.cpp @@ -72,11 +72,11 @@ void OpenGLDebugRenderer::drawBitmap(SkBitmap* bitmap, float srcLeft, float srcT } void OpenGLDebugRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, - uint32_t width, uint32_t height, float left, float top, float right, float bottom, - const SkPaint* paint) { + const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors, + float left, float top, float right, float bottom, const SkPaint* paint) { mPrimitivesCount++; StopWatch w("drawPatch"); - OpenGLRenderer::drawPatch(bitmap, xDivs, yDivs, width, height, + OpenGLRenderer::drawPatch(bitmap, xDivs, yDivs, colors, width, height, numColors, left, top, right, bottom, paint); } -- cgit v1.2.3-59-g8ed1b