summaryrefslogtreecommitdiff
path: root/libs/hwui/PathCache.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2014-06-27 18:30:23 -0700
committer Chris Craik <ccraik@google.com> 2014-06-30 18:02:23 +0000
commit906d47fd2bcedb9674b5765d01bd9c758069074c (patch)
treebec8f9c65c1bba8496f5dd9c41d78cc894a0fa48 /libs/hwui/PathCache.cpp
parent3e1585e05ddb0fd60033a5603e330b8ab1f69303 (diff)
Deep copy SkPath parameter to PathCache task
bug:15440706 Change-Id: I2b5b25f620df838cb1155cc8502d86ad3644c212
Diffstat (limited to 'libs/hwui/PathCache.cpp')
-rw-r--r--libs/hwui/PathCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp
index 97eb58300ec9..ae486087e785 100644
--- a/libs/hwui/PathCache.cpp
+++ b/libs/hwui/PathCache.cpp
@@ -338,7 +338,7 @@ void PathCache::PathProcessor::onProcess(const sp<Task<SkBitmap*> >& task) {
float left, top, offset;
uint32_t width, height;
- PathCache::computePathBounds(t->path, &t->paint, left, top, offset, width, height);
+ PathCache::computePathBounds(&t->path, &t->paint, left, top, offset, width, height);
PathTexture* texture = t->texture;
texture->left = left;
@@ -349,7 +349,7 @@ void PathCache::PathProcessor::onProcess(const sp<Task<SkBitmap*> >& task) {
if (width <= mMaxTextureSize && height <= mMaxTextureSize) {
SkBitmap* bitmap = new SkBitmap();
- drawPath(t->path, &t->paint, *bitmap, left, top, offset, width, height);
+ drawPath(&t->path, &t->paint, *bitmap, left, top, offset, width, height);
t->setResult(bitmap);
} else {
texture->width = 0;