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

Unified Diff: ui/gfx/canvas.h

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
« no previous file with comments | « ui/base/clipboard/clipboard_win.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index 5fa067e5bb9445a7275a3706c19557dd36cb201b..38ad3ac364b7557338af8fa9b5c008efcb3946d9 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -15,6 +15,8 @@
#include "ui/base/ui_export.h"
#include "ui/gfx/native_widget_types.h"
+class SkCanvas;
+
namespace ui {
class Transform;
@@ -233,6 +235,8 @@ class UI_EXPORT Canvas {
// A quick and dirty way to obtain the underlying SkCanvas.
virtual CanvasSkia* AsCanvasSkia();
virtual const CanvasSkia* AsCanvasSkia() const;
Ben Goodger (Google) 2011/10/05 17:11:45 Did anyone use this for anything other than to get
piman 2011/10/05 17:31:29 I wanted to get rid of it, but there's a dozen or
+ virtual SkCanvas* GetSkCanvas();
+ virtual const SkCanvas* GetSkCanvas() const;
};
class UI_EXPORT CanvasPaint {
« no previous file with comments | « ui/base/clipboard/clipboard_win.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698