summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 17:22:28 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-15 17:22:28 +0000
commit0f1afed8d9f9f1849006fc6d93305d14986d16b6 (patch)
tree317787b597343760331431458fba0486bc49670f /gfx
parent9010941b17ea056d5dd8e28707262fa91d36b000 (diff)
downloadchromium_src-0f1afed8d9f9f1849006fc6d93305d14986d16b6.zip
chromium_src-0f1afed8d9f9f1849006fc6d93305d14986d16b6.tar.gz
chromium_src-0f1afed8d9f9f1849006fc6d93305d14986d16b6.tar.bz2
Keep deinlining stuff.
BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5783004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69273 0039d316-1c4b-4281-b951-d872f2087c98
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',