提交 97e13a57 编写于 作者: A Adam Barth

Fix typo in image raster offset

We shouldn't plumb the "right" value into the y coordinate.
上级 fbd8ea0e
......@@ -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.
先完成此消息的编辑!
想要评论请 注册