Fix typo in image raster offset

We shouldn't plumb the "right" value into the y coordinate.
This commit is contained in:
Adam Barth 2016-01-14 09:29:34 -08:00
parent 3a3f0d6c46
commit dc498c912c

View File

@ -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());