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:
robertphillips 2014-10-20 08:45:57 -07:00 committed by Commit bot
parent 6219e1fa0b
commit 4a36d9ab5e

View File

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