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
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp
index b9b01e4..6402152 100644
--- a/tools/PictureRenderer.cpp
+++ b/tools/PictureRenderer.cpp
@@ -612,6 +612,7 @@
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();