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

Unified Diff: views/aura_desktop/aura_desktop_main.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/aura_desktop/aura_desktop_main.cc
diff --git a/views/aura_desktop/aura_desktop_main.cc b/views/aura_desktop/aura_desktop_main.cc
index 2cd2bc6361999cde397c71ed2b47dd397206a6dc..3516f2a93a1b4aad237c5dd49a5cadd199d45324 100644
--- a/views/aura_desktop/aura_desktop_main.cc
+++ b/views/aura_desktop/aura_desktop_main.cc
@@ -56,7 +56,7 @@ class DemoWindowDelegate : public aura::WindowDelegate {
virtual void OnLostActive() OVERRIDE {}
virtual void OnCaptureLost() OVERRIDE {}
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
- canvas->AsCanvasSkia()->drawColor(color_, SkXfermode::kSrc_Mode);
+ canvas->GetSkCanvas()->drawColor(color_, SkXfermode::kSrc_Mode);
}
virtual void OnWindowDestroying() OVERRIDE {
}
« ui/gfx/canvas.h ('K') | « ui/gfx/render_text_win.cc ('k') | views/background.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698