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

Unified Diff: chrome/browser/ui/gtk/browser_toolbar_gtk.cc

Issue 6879013: skia::PlatformCanvas is being deprecated. Going forward we will use gfx::Canvas wherever we need ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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: chrome/browser/ui/gtk/browser_toolbar_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/browser_toolbar_gtk.cc (revision 82144)
+++ chrome/browser/ui/gtk/browser_toolbar_gtk.cc (working copy)
@@ -635,11 +635,12 @@
}
// Draw the chrome app menu icon onto the canvas.
- gfx::CanvasSkiaPaint canvas(expose, false);
+ gfx::CanvasSkiaPaint canvas_paint(expose, false);
+ gfx::Canvas* canvas = canvas_paint.AsCanvas();
int x_offset = base::i18n::IsRTL() ? 0 :
sender->allocation.width - badge->width();
int y_offset = 0;
- canvas.DrawBitmapInt(
+ canvas->DrawBitmapInt(
*badge,
sender->allocation.x + x_offset,
sender->allocation.y + y_offset);
« no previous file with comments | « chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc ('k') | chrome/browser/ui/gtk/download/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698