diff options
| author | 2015-03-03 14:20:47 -0800 | |
|---|---|---|
| committer | 2015-03-04 15:32:47 -0800 | |
| commit | 8820fd1d82acaefda98ae73ccf61413d5044f9f3 (patch) | |
| tree | 8d4096270a7362947bcbf9daee077b6571d30ffd /libs/hwui/GlopBuilder.cpp | |
| parent | a9761e698e2f1cffbbb4ed99b89eb1100337b496 (diff) | |
Patch cleanup, reenable Patch Glops
bug:19597454
Change-Id: If12b95e83588b81a553210cd8c2437c6c771073a
Diffstat (limited to 'libs/hwui/GlopBuilder.cpp')
| -rw-r--r-- | libs/hwui/GlopBuilder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/GlopBuilder.cpp b/libs/hwui/GlopBuilder.cpp index f94dc38debab..711b11c61896 100644 --- a/libs/hwui/GlopBuilder.cpp +++ b/libs/hwui/GlopBuilder.cpp @@ -198,7 +198,7 @@ GlopBuilder& GlopBuilder::setMeshPatchQuads(const Patch& patch) { mOutGlop->mesh.vertices = { mCaches.patchCache.getMeshBuffer(), VertexAttribFlags::kTextureCoord, - (void*)patch.offset, (void*)patch.textureOffset, nullptr, + (void*)patch.positionOffset, (void*)patch.textureOffset, nullptr, kTextureVertexStride }; mOutGlop->mesh.elementCount = patch.indexCount; return *this; @@ -518,6 +518,7 @@ GlopBuilder& GlopBuilder::setModelViewOffsetRectSnap(float offsetX, float offset } mOutGlop->transform.modelView.loadTranslate(offsetX, offsetY, 0.0f); + mOutGlop->bounds = source; mOutGlop->bounds.translate(offsetX, offsetY); return *this; } |