Loading libs/hwui/PathCache.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -346,7 +346,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; Loading @@ -357,7 +357,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; Loading libs/hwui/PathCache.h +3 −2 Original line number Diff line number Diff line Loading @@ -293,7 +293,7 @@ private: class PathTask: public Task<SkBitmap*> { public: PathTask(SkPath* path, SkPaint* paint, PathTexture* texture): path(path), paint(paint), texture(texture) { path(path), paint(*paint), texture(texture) { } ~PathTask() { Loading @@ -301,7 +301,8 @@ private: } SkPath* path; SkPaint* paint; //copied, since input paint may not be immutable SkPaint paint; PathTexture* texture; }; Loading Loading
libs/hwui/PathCache.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -346,7 +346,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; Loading @@ -357,7 +357,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; Loading
libs/hwui/PathCache.h +3 −2 Original line number Diff line number Diff line Loading @@ -293,7 +293,7 @@ private: class PathTask: public Task<SkBitmap*> { public: PathTask(SkPath* path, SkPaint* paint, PathTexture* texture): path(path), paint(paint), texture(texture) { path(path), paint(*paint), texture(texture) { } ~PathTask() { Loading @@ -301,7 +301,8 @@ private: } SkPath* path; SkPaint* paint; //copied, since input paint may not be immutable SkPaint paint; PathTexture* texture; }; Loading