summaryrefslogtreecommitdiffstats
path: root/skia/ext/vector_canvas_linux.cc
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-19 04:37:08 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-19 04:37:08 +0000
commit4a146de428a502f0de45e571f415039b3989ef38 (patch)
tree75e661ee9d2fcdae72ff35dc5e953054885b5c4a /skia/ext/vector_canvas_linux.cc
parent09d8b96b586dc972f31b6e1c72643de6ffb5ad16 (diff)
downloadchromium_src-4a146de428a502f0de45e571f415039b3989ef38.zip
chromium_src-4a146de428a502f0de45e571f415039b3989ef38.tar.gz
chromium_src-4a146de428a502f0de45e571f415039b3989ef38.tar.bz2
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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78662 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78663 Review URL: http://codereview.chromium.org/6665046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/vector_canvas_linux.cc')
-rw-r--r--skia/ext/vector_canvas_linux.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/skia/ext/vector_canvas_linux.cc b/skia/ext/vector_canvas_linux.cc
deleted file mode 100644
index aff4fbe..0000000
--- a/skia/ext/vector_canvas_linux.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2009 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 "skia/ext/vector_canvas.h"
-
-#include "skia/ext/vector_platform_device.h"
-
-namespace skia {
-
-VectorCanvas::VectorCanvas(cairo_t* context, int width, int height) {
- bool initialized = initialize(context, width, height);
-
- SkASSERT(initialized);
-}
-
-bool VectorCanvas::initialize(cairo_t* context, int width, int height) {
- SkDevice* device = VectorPlatformDeviceFactory::CreateDevice(context, width,
- height, true);
- if (!device)
- return false;
-
- setDevice(device);
- device->unref(); // was created with refcount 1, and setDevice also refs
- return true;
-}
-
-} // namespace skia