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

Unified Diff: chrome/browser/ui/gtk/bookmarks/bookmark_utils_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/bookmarks/bookmark_utils_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc (revision 82144)
+++ chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc (working copy)
@@ -134,13 +134,14 @@
cairo_destroy(cr);
// Paint the title text.
- gfx::CanvasSkiaPaint canvas(event, false);
+ gfx::CanvasSkiaPaint canvas_paint(event, false);
int text_x = gdk_pixbuf_get_width(data->favicon) + kBarButtonPadding;
int text_width = sender->allocation.width - text_x;
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
const gfx::Font& base_font = rb.GetFont(ResourceBundle::BaseFont);
- canvas.DrawStringInt(data->text, base_font, data->text_color,
- text_x, 0, text_width, sender->allocation.height);
+ canvas_paint.AsCanvas()->DrawStringInt(
+ data->text, base_font, data->text_color,
+ text_x, 0, text_width, sender->allocation.height);
return TRUE;
}
« no previous file with comments | « chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc ('k') | chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698