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

Unified Diff: chrome/browser/views/sad_tab_view.cc

Issue 2825018: Canvas refactoring part 3.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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/views/sad_tab_view.cc
===================================================================
--- chrome/browser/views/sad_tab_view.cc (revision 50664)
+++ chrome/browser/views/sad_tab_view.cc (working copy)
@@ -57,9 +57,8 @@
kBackgroundColor,
kBackgroundEndColor))->safeUnref();
paint.setStyle(SkPaint::kFill_Style);
- canvas->drawRectCoords(0, 0,
- SkIntToScalar(width()), SkIntToScalar(height()),
- paint);
+ canvas->AsCanvasSkia()->drawRectCoords(
+ 0, 0, SkIntToScalar(width()), SkIntToScalar(height()), paint);
canvas->DrawBitmapInt(*sad_tab_bitmap_, icon_bounds_.x(), icon_bounds_.y());

Powered by Google App Engine
This is Rietveld 408576698