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

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

Issue 2811032: Revert 50784 - 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
« no previous file with comments | « chrome/browser/views/bubble_border.cc ('k') | chrome/browser/views/detachable_toolbar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/create_application_shortcut_view.cc
===================================================================
--- chrome/browser/views/create_application_shortcut_view.cc (revision 50789)
+++ chrome/browser/views/create_application_shortcut_view.cc (working copy)
@@ -13,7 +13,7 @@
#include "chrome/browser/tab_contents/tab_contents_delegate.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/pref_names.h"
-#include "gfx/canvas_skia.h"
+#include "gfx/canvas.h"
#include "gfx/codec/png_codec.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
@@ -169,8 +169,8 @@
border_paint.setAntiAlias(true);
border_paint.setARGB(0xFF, 0xC8, 0xC8, 0xC8);
- canvas->AsCanvasSkia()->drawRoundRect(
- border_rect, SkIntToScalar(2), SkIntToScalar(2), border_paint);
+ canvas->drawRoundRect(border_rect, SkIntToScalar(2), SkIntToScalar(2),
+ border_paint);
SkRect inner_rect = {
border_rect.fLeft + SkDoubleToScalar(0.5),
@@ -182,8 +182,8 @@
SkPaint inner_paint;
inner_paint.setAntiAlias(true);
inner_paint.setARGB(0xFF, 0xF8, 0xF8, 0xF8);
- canvas->AsCanvasSkia()->drawRoundRect(
- inner_rect, SkIntToScalar(1.5), SkIntToScalar(1.5), inner_paint);
+ canvas->drawRoundRect(inner_rect, SkIntToScalar(1.5), SkIntToScalar(1.5),
+ inner_paint);
}
}; // namespace
« no previous file with comments | « chrome/browser/views/bubble_border.cc ('k') | chrome/browser/views/detachable_toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698