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

Unified Diff: tools/PictureRenderer.cpp

Issue 136553004: Fix MESA cruft appearing in 8888 vs. gpu telemetry runs (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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
===================================================================
--- tools/PictureRenderer.cpp (revision 13042)
+++ tools/PictureRenderer.cpp (working copy)
@@ -178,6 +178,11 @@
}
setUpFilter(canvas, fDrawFilters);
this->scaleToScaleFactor(canvas);
+
+ // Pictures often lie about their extent (i.e., claim to be 100x100 but
+ // only ever draw to 90x100). Clear here so the undrawn portion will have
+ // a consistent color
+ canvas->clear(SK_ColorTRANSPARENT);
return canvas;
}
« 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