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

Unified Diff: ui/gfx/canvas_skia_win.cc

Issue 9416017: Optionally clear PlatformCanvas instances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
Index: ui/gfx/canvas_skia_win.cc
===================================================================
--- ui/gfx/canvas_skia_win.cc (revision 126450)
+++ ui/gfx/canvas_skia_win.cc (working copy)
@@ -551,6 +551,7 @@
// Create a temporary bitmap to draw the gradient to.
scoped_ptr<SkCanvas> gradient_canvas(skia::CreateBitmapCanvas(
display_rect.width(), display_rect.height(), false));
+ gradient_canvas->clear(SkColorSetARGB(0, 0, 0, 0));
{
skia::ScopedPlatformPaint scoped_platform_paint(canvas_);

Powered by Google App Engine
This is Rietveld 408576698