diff options
author | caryclark@chromium.org <caryclark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-20 14:53:14 +0000 |
---|---|---|
committer | caryclark@chromium.org <caryclark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-20 14:53:14 +0000 |
commit | 010d8f94547398d1e9ef50e3d7abbf1590bb4bf5 (patch) | |
tree | cc5096d5c8b04e24ba86692edc8aa0dd3270aeea /skia | |
parent | 78c0df3c5a0ffd85055272693e3f2c83a6642e81 (diff) | |
download | chromium_src-010d8f94547398d1e9ef50e3d7abbf1590bb4bf5.zip chromium_src-010d8f94547398d1e9ef50e3d7abbf1590bb4bf5.tar.gz chromium_src-010d8f94547398d1e9ef50e3d7abbf1590bb4bf5.tar.bz2 |
Add entries to complete the Skia vector platform for Mac.
These functions are not called and have no purpose
except to allow these virtuals to be satisfied.
This code path is not enabled in Chromium, and therefore
has no tests.
BUG=79463
TEST=none
Review URL: http://codereview.chromium.org/7201002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89667 0039d316-1c4b-4281-b951-d872f2087c98
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. |