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

Unified Diff: views/painter.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: views/painter.cc
diff --git a/views/painter.cc b/views/painter.cc
index 5a82bff559b13e5298da08715a10a2a7524e4667..917c6a97c23b000196f6a7418ded1da3be16c0b1 100644
--- a/views/painter.cc
+++ b/views/painter.cc
@@ -44,7 +44,7 @@ class GradientPainter : public Painter {
// Need to unref shader, otherwise never deleted.
s->unref();
- canvas->AsCanvasSkia()->drawRectCoords(
+ canvas->GetSkCanvas()->drawRectCoords(
SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(w), SkIntToScalar(h),
paint);
}

Powered by Google App Engine
This is Rietveld 408576698