| Index: skia/ext/bitmap_platform_device_win.h
|
| diff --git a/skia/ext/bitmap_platform_device_win.h b/skia/ext/bitmap_platform_device_win.h
|
| index 059b600f121232813c589d10a761b5f03fb3fbe0..74806b5e52d37a79ad19b002c66cc16faa9ff29b 100644
|
| --- a/skia/ext/bitmap_platform_device_win.h
|
| +++ b/skia/ext/bitmap_platform_device_win.h
|
| @@ -10,6 +10,12 @@
|
|
|
| namespace skia {
|
|
|
| +class SkBitmapPlatformDeviceFactory : public SkRasterDeviceFactory {
|
| + public:
|
| + virtual SkDevice* newDevice(SkBitmap::Config config, int width, int height,
|
| + bool isOpaque, bool isForLayer);
|
| +};
|
| +
|
| // A device is basically a wrapper around SkBitmap that provides a surface for
|
| // SkCanvas to draw into. Our device provides a surface Windows can also write
|
| // to. BitmapPlatformDevice creates a bitmap using CreateDIBSection() in a
|
| @@ -62,6 +68,10 @@ class BitmapPlatformDevice : public PlatformDevice {
|
| // See warning for copy constructor above.
|
| BitmapPlatformDevice& operator=(const BitmapPlatformDevice& other);
|
|
|
| + virtual SkDeviceFactory* getDeviceFactory() {
|
| + return SkNEW(SkBitmapPlatformDeviceFactory);
|
| + }
|
| +
|
| // Retrieves the bitmap DC, which is the memory DC for our bitmap data. The
|
| // bitmap DC is lazy created.
|
| virtual HDC getBitmapDC();
|
|
|