summaryrefslogtreecommitdiffstats
path: root/skia/ext/platform_device_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/platform_device_mac.h')
-rw-r--r--skia/ext/platform_device_mac.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/skia/ext/platform_device_mac.h b/skia/ext/platform_device_mac.h
index 2005e89..97efd7c 100644
--- a/skia/ext/platform_device_mac.h
+++ b/skia/ext/platform_device_mac.h
@@ -20,8 +20,10 @@ namespace skia {
// functions.
// This class is abstract and must be subclassed. It provides the basic
// interface to implement it either with or without a bitmap backend.
-class PlatformDeviceMac : public SkDevice {
+class PlatformDevice : public SkDevice {
public:
+ typedef CGContextRef PlatformSurface;
+
// The CGContext that corresponds to the bitmap, used for CoreGraphics
// operations drawing into the bitmap. This is possibly heavyweight, so it
// should exist only during one pass of rendering.
@@ -52,7 +54,7 @@ class PlatformDeviceMac : public SkDevice {
protected:
// Forwards |bitmap| to SkDevice's constructor.
- PlatformDeviceMac(const SkBitmap& bitmap);
+ PlatformDevice(const SkBitmap& bitmap);
// Loads the specified Skia transform into the device context
static void LoadTransformToCGContext(CGContextRef context,