diff options
author | Chris Craik <ccraik@google.com> | 2015-03-03 14:20:47 -0800 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2015-03-04 15:32:47 -0800 |
commit | 8820fd1d82acaefda98ae73ccf61413d5044f9f3 (patch) | |
tree | 8d4096270a7362947bcbf9daee077b6571d30ffd /libs/hwui/OpenGLRenderer.cpp | |
parent | a9761e698e2f1cffbbb4ed99b89eb1100337b496 (diff) | |
download | frameworks_base-8820fd1d82acaefda98ae73ccf61413d5044f9f3.zip frameworks_base-8820fd1d82acaefda98ae73ccf61413d5044f9f3.tar.gz frameworks_base-8820fd1d82acaefda98ae73ccf61413d5044f9f3.tar.bz2 |
Patch cleanup, reenable Patch Glops
bug:19597454
Change-Id: If12b95e83588b81a553210cd8c2437c6c771073a
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 76a42c0..7fd115f 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<int>(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); |