Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: tools/PictureRenderer.cpp

Issue 664103003: Fix clearing issue in render_pictures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix typo in comment Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/PictureRenderer.cpp
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp
index b9b01e4cf96093c64306395cd3342496803068e9..64021525b0f220ab9da61c5b61a1dbd829a0c69f 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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698