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

Unified Diff: views/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: views/background.cc
diff --git a/views/background.cc b/views/background.cc
index f9eb2135fc09bea31b88bbe719fc6b4224bf15db..fa79793318346be6a6b04bcb2d9c74ea4c31171a 100644
--- a/views/background.cc
+++ b/views/background.cc
@@ -25,7 +25,7 @@ class SolidBackground : public Background {
void Paint(gfx::Canvas* canvas, View* view) const {
// Fill the background. Note that we don't constrain to the bounds as
// canvas is already clipped for us.
- canvas->AsCanvasSkia()->drawColor(get_color());
+ canvas->GetSkCanvas()->drawColor(get_color());
}
private:

Powered by Google App Engine
This is Rietveld 408576698