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

Unified Diff: chrome/browser/ui/views/sad_tab_view.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/views/sad_tab_view.cc
===================================================================
--- chrome/browser/ui/views/sad_tab_view.cc (revision 82144)
+++ chrome/browser/ui/views/sad_tab_view.cc (working copy)
@@ -82,7 +82,7 @@
kind_ == CRASHED ?
kCrashBackgroundEndColor : kKillBackgroundEndColor)));
paint.setStyle(SkPaint::kFill_Style);
- canvas->AsCanvasSkia()->drawRectCoords(
+ canvas->AsCanvasSkia()->skia_canvas()->drawRectCoords(
0, 0, SkIntToScalar(width()), SkIntToScalar(height()), paint);
canvas->DrawBitmapInt(*sad_tab_bitmap_, icon_bounds_.x(), icon_bounds_.y());
@@ -114,7 +114,8 @@
int title_height = title_font_->GetHeight();
title_bounds_.SetRect(title_x, title_y, title_width_, title_height);
- gfx::CanvasSkia cc(0, 0, true);
+ gfx::CanvasSkia cc;
+ cc.Init(0, 0, true);
int message_width = static_cast<int>(width() * kMessageSize);
int message_height = 0;
cc.SizeStringInt(WideToUTF16Hack(message_), *message_font_, &message_width,
« no previous file with comments | « chrome/browser/ui/views/notifications/balloon_view.cc ('k') | chrome/browser/ui/views/status_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698