mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #2275 from abarth/scale_first
Fix order of matrix operations
This commit is contained in:
commit
808ac1a556
@ -84,8 +84,8 @@ skia::RefPtr<SkImage> RasterCache::GetPrerolledImage(GrContext* context,
|
||||
if (surface) {
|
||||
SkCanvas* canvas = surface->getCanvas();
|
||||
canvas->clear(SK_ColorTRANSPARENT);
|
||||
canvas->translate(-rect.left(), -rect.top());
|
||||
canvas->scale(scaleX, scaleY);
|
||||
canvas->translate(-rect.left(), -rect.top());
|
||||
canvas->drawPicture(picture);
|
||||
entry.image = skia::AdoptRef(surface->newImageSnapshot());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user