Fix clearing issue in render_pictures
This bug only crops up when using the "--writeWholeImage" option in tile mode Review URL: https://codereview.chromium.org/664103003
This commit is contained in:
parent
6219e1fa0b
commit
4a36d9ab5e
@ -612,6 +612,7 @@ static void draw_tile_to_canvas(SkCanvas* canvas,
|
||||
SkMatrix mat(canvas->getTotalMatrix());
|
||||
mat.postTranslate(-SkIntToScalar(tileRect.fLeft), -SkIntToScalar(tileRect.fTop));
|
||||
canvas->setMatrix(mat);
|
||||
canvas->clear(SK_ColorTRANSPARENT); // Not every picture covers the entirety of every tile
|
||||
canvas->drawPicture(picture);
|
||||
canvas->restoreToCount(saveCount);
|
||||
canvas->flush();
|
||||
|
Loading…
Reference in New Issue
Block a user