| Index: skia/ext/bitmap_platform_device_data.h
|
| diff --git a/skia/ext/bitmap_platform_device_data.h b/skia/ext/bitmap_platform_device_data.h
|
| index ff9b74f33c6e3f3131e94ad03b48873eb71322ac..af510130a8682436646d08fc95d62461f607a246 100644
|
| --- a/skia/ext/bitmap_platform_device_data.h
|
| +++ b/skia/ext/bitmap_platform_device_data.h
|
| @@ -12,7 +12,7 @@ namespace skia {
|
| class BitmapPlatformDevice::BitmapPlatformDeviceData :
|
| #if defined(WIN32) || defined(__APPLE__)
|
| public SkRefCnt {
|
| -#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
| +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__sun)
|
| // These objects are reference counted and own a Cairo surface. The surface
|
| // is the backing store for a Skia bitmap and we reference count it so that
|
| // we can copy BitmapPlatformDevice objects without having to copy all the
|
| @@ -25,13 +25,13 @@ class BitmapPlatformDevice::BitmapPlatformDeviceData :
|
| typedef HBITMAP PlatformContext;
|
| #elif defined(__APPLE__)
|
| typedef CGContextRef PlatformContext;
|
| -#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
| +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__sun)
|
| typedef cairo_t* PlatformContext;
|
| #endif
|
|
|
| #if defined(WIN32) || defined(__APPLE__)
|
| explicit BitmapPlatformDeviceData(PlatformContext bitmap);
|
| -#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
| +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__sun)
|
| explicit BitmapPlatformDeviceData(cairo_surface_t* surface);
|
| #endif
|
|
|
| @@ -64,7 +64,7 @@ class BitmapPlatformDevice::BitmapPlatformDeviceData :
|
| }
|
|
|
| private:
|
| -#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
| +#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__sun)
|
| friend class base::RefCounted<BitmapPlatformDeviceData>;
|
| #endif
|
| virtual ~BitmapPlatformDeviceData();
|
| @@ -75,7 +75,7 @@ class BitmapPlatformDevice::BitmapPlatformDeviceData :
|
| #if defined(WIN32)
|
| // Lazily-created DC used to draw into the bitmap, see GetBitmapDC().
|
| HDC hdc_;
|
| -#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
| +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__sun)
|
| cairo_surface_t *const surface_;
|
| #endif
|
|
|
|
|