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

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

Issue 8122013: Allow CanvasSkia to bind to an existing SkCanvas. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 1 more fix Created 9 years, 2 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/create_application_shortcut_view.cc
diff --git a/chrome/browser/ui/views/create_application_shortcut_view.cc b/chrome/browser/ui/views/create_application_shortcut_view.cc
index 9c6c252b41240169c421b3bf447250f51ba9ae24..cc345a09f7c5067f90cd2e7b73a3d36e266654fe 100644
--- a/chrome/browser/ui/views/create_application_shortcut_view.cc
+++ b/chrome/browser/ui/views/create_application_shortcut_view.cc
@@ -176,7 +176,7 @@ void AppInfoView::OnPaint(gfx::Canvas* canvas) {
border_paint.setAntiAlias(true);
border_paint.setARGB(0xFF, 0xC8, 0xC8, 0xC8);
- canvas->AsCanvasSkia()->drawRoundRect(
+ canvas->GetSkCanvas()->drawRoundRect(
border_rect, SkIntToScalar(2), SkIntToScalar(2), border_paint);
SkRect inner_rect = {
@@ -189,7 +189,7 @@ void AppInfoView::OnPaint(gfx::Canvas* canvas) {
SkPaint inner_paint;
inner_paint.setAntiAlias(true);
inner_paint.setARGB(0xFF, 0xF8, 0xF8, 0xF8);
- canvas->AsCanvasSkia()->drawRoundRect(
+ canvas->GetSkCanvas()->drawRoundRect(
inner_rect, SkDoubleToScalar(1.5), SkDoubleToScalar(1.5), inner_paint);
}

Powered by Google App Engine
This is Rietveld 408576698