提交 b8a7e731 编写于 作者: A Adam Barth

Merge pull request #2263 from abarth/raster_offset

Fix typo in image raster offset
......@@ -84,7 +84,7 @@ skia::RefPtr<SkImage> RasterCache::GetPrerolledImage(GrContext* context,
if (surface) {
SkCanvas* canvas = surface->getCanvas();
canvas->clear(SK_ColorTRANSPARENT);
canvas->translate(-rect.left(), -rect.right());
canvas->translate(-rect.left(), -rect.top());
canvas->scale(scaleX, scaleY);
canvas->drawPicture(picture);
entry.image = skia::AdoptRef(surface->newImageSnapshot());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册