From 8820fd1d82acaefda98ae73ccf61413d5044f9f3 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Tue, 3 Mar 2015 14:20:47 -0800 Subject: Patch cleanup, reenable Patch Glops bug:19597454 Change-Id: If12b95e83588b81a553210cd8c2437c6c771073a --- libs/hwui/OpenGLRenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/hwui/OpenGLRenderer.cpp') diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 76a42c020e0a..7fd115f548b7 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -2329,7 +2329,7 @@ void OpenGLRenderer::drawPatch(const SkBitmap* bitmap, const Patch* mesh, Texture* texture = entry ? entry->texture : mCaches.textureCache.get(bitmap); if (!texture) return; - if (false) { + if (USE_GLOPS) { // 9 patches are built for stretching - always filter int textureFillFlags = static_cast(TextureFillFlags::kForceFilter); if (bitmap->colorType() == kAlpha_8_SkColorType) { @@ -2384,7 +2384,7 @@ void OpenGLRenderer::drawPatch(const SkBitmap* bitmap, const Patch* mesh, ignoreTransform = true; } drawIndexedTextureMesh(left, top, right, bottom, texture->id, paint, - texture->blend, (GLvoid*) mesh->offset, (GLvoid*) mesh->textureOffset, + texture->blend, (GLvoid*) mesh->positionOffset, (GLvoid*) mesh->textureOffset, GL_TRIANGLES, mesh->indexCount, false, ignoreTransform, mCaches.patchCache.getMeshBuffer(), kModelViewMode_Translate, !mesh->hasEmptyQuads); -- cgit v1.2.3-59-g8ed1b