summaryrefslogtreecommitdiffstats
path: root/skia/ext/vector_canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/vector_canvas.h')
-rw-r--r--skia/ext/vector_canvas.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/skia/ext/vector_canvas.h b/skia/ext/vector_canvas.h
index 510e8f3..27f7598 100644
--- a/skia/ext/vector_canvas.h
+++ b/skia/ext/vector_canvas.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-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.
@@ -6,7 +6,7 @@
#define SKIA_EXT_VECTOR_CANVAS_H_
#include "skia/ext/platform_canvas.h"
-#include "skia/ext/vector_platform_device_win.h"
+#include "skia/ext/vector_platform_device.h"
namespace skia {
@@ -17,22 +17,36 @@ namespace skia {
class VectorCanvas : public PlatformCanvas {
public:
VectorCanvas();
+#if defined(WIN32)
VectorCanvas(HDC dc, int width, int height);
+#elif defined(__linux__)
+ VectorCanvas(int width, int height);
+#endif
virtual ~VectorCanvas();
// For two-part init, call if you use the no-argument constructor above
+#if defined(WIN32)
bool initialize(HDC context, int width, int height);
+#elif defined(__linux__)
+ bool initialize(int width, int height);
+#endif
virtual SkBounder* setBounder(SkBounder*);
+#if defined(WIN32) || defined(__linux__)
virtual SkDevice* createDevice(SkBitmap::Config config,
int width, int height,
bool is_opaque, bool isForLayer);
+#endif
virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter);
private:
// |is_opaque| is unused. |shared_section| is in fact the HDC used for output.
+#if defined(WIN32)
virtual SkDevice* createPlatformDevice(int width, int height, bool is_opaque,
HANDLE shared_section);
+#elif defined(__linux__)
+ virtual SkDevice* createPlatformDevice(int width, int height, bool is_opaque);
+#endif
// Returns true if the top device is vector based and not bitmap based.
bool IsTopDeviceVectorial() const;