Index: skia/ext/bitmap_platform_device_mac.h |
=================================================================== |
--- skia/ext/bitmap_platform_device_mac.h (revision 91287) |
+++ skia/ext/bitmap_platform_device_mac.h (working copy) |
@@ -11,14 +11,6 @@ |
namespace skia { |
-class BitmapPlatformDeviceFactory : public SkDeviceFactory { |
- public: |
- virtual SkDevice* newDevice(SkCanvas* ignored, 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 CoreGraphics can also |
// write to. BitmapPlatformDevice creates a bitmap using |
@@ -71,8 +63,9 @@ |
// starts accessing pixel data. |
virtual void onAccessBitmap(SkBitmap*); |
- // Override SkDevice. |
- virtual SkDeviceFactory* onNewDeviceFactory(); |
+ virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width, |
vandebo (ex-Chrome)
2011/07/01 17:20:14
nit: extra space.
|
+ int height, bool isOpaque, |
+ Usage usage); |
// Data associated with this device, guaranteed non-null. We hold a reference |
// to this object. |