summaryrefslogtreecommitdiffstats
path: root/skia/ext/vector_canvas.cc
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/vector_canvas.cc')
-rw-r--r--skia/ext/vector_canvas.cc10
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() {