diff options
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/vector_platform_device_skia.cc | 13 | ||||
-rw-r--r-- | skia/ext/vector_platform_device_skia.h | 4 |
2 files changed, 16 insertions, 1 deletions
diff --git a/skia/ext/vector_platform_device_skia.cc b/skia/ext/vector_platform_device_skia.cc index 45a6fba..22c029c 100644 --- a/skia/ext/vector_platform_device_skia.cc +++ b/skia/ext/vector_platform_device_skia.cc @@ -56,7 +56,7 @@ PlatformDevice::PlatformSurface VectorPlatformDeviceSkia::BeginPlatformPaint() { pdf_device_->height(), false, /* not opaque */ NULL); -#elif defined(OS_POSIX) +#elif defined(OS_POSIX) && !defined(OS_MACOSX) raster_surface_ = BitmapPlatformDevice::Create(pdf_device_->width(), pdf_device_->height(), false /* not opaque */); @@ -211,6 +211,17 @@ void VectorPlatformDeviceSkia::DrawToNativeContext(HDC dc, const RECT* src_rect) { SkASSERT(false); } +#elif defined(OS_MACOSX) +void VectorPlatformDeviceSkia::DrawToNativeContext(CGContext* context, int x, + int y, const CGRect* src_rect) { + SkASSERT(false); +} + +CGContextRef VectorPlatformDeviceSkia::GetBitmapContext() { + SkASSERT(false); + return NULL; +} + #endif SkDeviceFactory* VectorPlatformDeviceSkia::onNewDeviceFactory() { diff --git a/skia/ext/vector_platform_device_skia.h b/skia/ext/vector_platform_device_skia.h index 1998f59..ee19389 100644 --- a/skia/ext/vector_platform_device_skia.h +++ b/skia/ext/vector_platform_device_skia.h @@ -45,6 +45,10 @@ class VectorPlatformDeviceSkia : public PlatformDevice { virtual void EndPlatformPaint(); #if defined(OS_WIN) virtual void DrawToNativeContext(HDC dc, int x, int y, const RECT* src_rect); +#elif defined(OS_MACOSX) + virtual void DrawToNativeContext(CGContext* context, int x, int y, + const CGRect* src_rect); + virtual CGContextRef GetBitmapContext(); #endif // SkDevice methods. |