summaryrefslogtreecommitdiffstats
path: root/libs/hwui/GlopBuilder.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-03-03 14:20:47 -0800
committerChris Craik <ccraik@google.com>2015-03-04 15:32:47 -0800
commit8820fd1d82acaefda98ae73ccf61413d5044f9f3 (patch)
tree8d4096270a7362947bcbf9daee077b6571d30ffd /libs/hwui/GlopBuilder.cpp
parenta9761e698e2f1cffbbb4ed99b89eb1100337b496 (diff)
downloadframeworks_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/GlopBuilder.cpp')
-rw-r--r--libs/hwui/GlopBuilder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/GlopBuilder.cpp b/libs/hwui/GlopBuilder.cpp
index f94dc38..711b11c 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;
}