Index: tools/PictureRenderer.cpp |
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp |
index f2fd6b73fa8d968a902d915fbb4e23f347fe5c6f..33766e96195c58f556e458186afb9da661138373 100644 |
--- a/tools/PictureRenderer.cpp |
+++ b/tools/PictureRenderer.cpp |
@@ -618,6 +618,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->clipRect(SkRect::Make(tileRect)); |
canvas->clear(SK_ColorTRANSPARENT); // Not every picture covers the entirety of every tile |
canvas->drawPicture(picture); |
canvas->restoreToCount(saveCount); |