aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-10-20 08:45:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-20 08:45:58 -0700
commit4a36d9ab5efc6d0efd08a48bb46b5c64c15290d9 (patch)
tree63241b72f28fb7db9e03397b40e38b3629f8bc67 /tools
parent6219e1fa0b645afe9ca6bc1d8c3989679d72ea61 (diff)
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
Diffstat (limited to 'tools')
-rw-r--r--tools/PictureRenderer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp
index b9b01e4cf9..64021525b0 100644
--- a/tools/PictureRenderer.cpp
+++ b/tools/PictureRenderer.cpp
@@ -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();