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

Unified Diff: chrome/browser/ui/views/infobars/infobar_background.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/infobars/infobar_background.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_background.cc b/chrome/browser/ui/views/infobars/infobar_background.cc
index e28e1aca60631627a2975f3db71f93bebf4cff15..5822faa8997dbf47f4bc513cd64f99d05fe822aa 100644
--- a/chrome/browser/ui/views/infobars/infobar_background.cc
+++ b/chrome/browser/ui/views/infobars/infobar_background.cc
@@ -39,7 +39,7 @@ void InfoBarBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
gradient_shader->unref();
InfoBarView* infobar = static_cast<InfoBarView*>(view);
- gfx::CanvasSkia* canvas_skia = canvas->AsCanvasSkia();
+ SkCanvas* canvas_skia = canvas->GetSkCanvas();
canvas_skia->drawPath(infobar->fill_path(), paint);
paint.setShader(NULL);

Powered by Google App Engine
This is Rietveld 408576698