summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'gfx')
-rw-r--r--gfx/canvas.cc17
-rw-r--r--gfx/canvas.h4
-rw-r--r--gfx/gfx.gyp1
3 files changed, 20 insertions, 2 deletions
diff --git a/gfx/canvas.cc b/gfx/canvas.cc
new file mode 100644
index 0000000..28e6a8a
--- /dev/null
+++ b/gfx/canvas.cc
@@ -0,0 +1,17 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "gfx/canvas.h"
+
+namespace gfx {
+
+CanvasSkia* Canvas::AsCanvasSkia() {
+ return NULL;
+}
+
+const CanvasSkia* Canvas::AsCanvasSkia() const {
+ return NULL;
+}
+
+} // namespace gfx;
diff --git a/gfx/canvas.h b/gfx/canvas.h
index c68cdab..b64c926 100644
--- a/gfx/canvas.h
+++ b/gfx/canvas.h
@@ -210,8 +210,8 @@ class Canvas {
// TODO(beng): remove this once we don't need to use any skia-specific methods
// through this interface.
// A quick and dirty way to obtain the underlying SkCanvas.
- virtual CanvasSkia* AsCanvasSkia() { return NULL; }
- virtual const CanvasSkia* AsCanvasSkia() const { return NULL; }
+ virtual CanvasSkia* AsCanvasSkia();
+ virtual const CanvasSkia* AsCanvasSkia() const;
};
class CanvasPaint {
diff --git a/gfx/gfx.gyp b/gfx/gfx.gyp
index 706f9ba..76aea87 100644
--- a/gfx/gfx.gyp
+++ b/gfx/gfx.gyp
@@ -88,6 +88,7 @@
'blit.cc',
'blit.h',
'brush.h',
+ 'canvas.cc',
'canvas.h',
'canvas_skia.h',
'canvas_skia.cc',