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

Unified Diff: chrome/browser/ui/cocoa/extensions/browser_action_button.mm

Issue 9837043: Initialize bitmap to (0, 0, 0, 0) for CanvasPaintT<T> instances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove unneeded clear for extension icons. 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
« no previous file with comments | « no previous file | skia/ext/canvas_paint_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/extensions/browser_action_button.mm
===================================================================
--- chrome/browser/ui/cocoa/extensions/browser_action_button.mm (revision 128476)
+++ chrome/browser/ui/cocoa/extensions/browser_action_button.mm (working copy)
@@ -318,7 +318,6 @@
- (void)drawBadgeWithinFrame:(NSRect)frame {
gfx::CanvasSkiaPaint canvas(frame, false);
- canvas.sk_canvas()->clear(SkColorSetARGB(0, 0, 0, 0));
canvas.set_composite_alpha(true);
gfx::Rect boundingRect(NSRectToCGRect(frame));
extensionAction_->PaintBadge(&canvas, boundingRect, tabId_);
« no previous file with comments | « no previous file | skia/ext/canvas_paint_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698