diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-18 03:52:55 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-18 03:52:55 +0000 |
commit | 0a7031a43ea2b15e606882e9c5e3da58f565b701 (patch) | |
tree | a5cc48ab501d0f6bb21ffb0d02815e858c3d9fdc /skia/ext/vector_canvas.cc | |
parent | 063f8db1c4ec940c6391a36f85c9bcb124fbed9a (diff) | |
download | chromium_src-0a7031a43ea2b15e606882e9c5e3da58f565b701.zip chromium_src-0a7031a43ea2b15e606882e9c5e3da58f565b701.tar.gz chromium_src-0a7031a43ea2b15e606882e9c5e3da58f565b701.tar.bz2 |
Revert 78662 - Unfork VectorPlatformCanvas.
Unfork VectorPlatformCanvas by making NativeMetafile know how to create an appropriate VectorPlatformDevice. This will also be useful when we have multiple NativeMetafile implemenations (each requiring a different VectorPlatformDevices).
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/6665046
TBR=vandebo@chromium.org
Review URL: http://codereview.chromium.org/6713029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78663 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/vector_canvas.cc')
-rw-r--r-- | skia/ext/vector_canvas.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/skia/ext/vector_canvas.cc b/skia/ext/vector_canvas.cc index 216a2ee..851da79 100644 --- a/skia/ext/vector_canvas.cc +++ b/skia/ext/vector_canvas.cc @@ -4,13 +4,13 @@ #include "skia/ext/vector_canvas.h" -#include "skia/ext/vector_platform_device.h" - namespace skia { -VectorCanvas::VectorCanvas(PlatformDevice* device) - : PlatformCanvas(device->getDeviceFactory()) { - setDevice(device)->unref(); // Created with refcount 1, and setDevice refs. +VectorCanvas::VectorCanvas() + : PlatformCanvas(SkNEW(VectorPlatformDeviceFactory)) { +} + +VectorCanvas::VectorCanvas(SkDeviceFactory* factory) : PlatformCanvas(factory) { } VectorCanvas::~VectorCanvas() { |