diff options
author | reed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-05 13:11:30 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-05 13:11:30 +0000 |
commit | 9dec727ff54efb1365599dcbdf6307c92a64a9ce (patch) | |
tree | f4997a248100ca55939cfa847d0b9e923e94083f /skia/ext/bitmap_platform_device_mac.h | |
parent | c6c09d400f06555f8be1005356152bb480f109ab (diff) | |
download | chromium_src-9dec727ff54efb1365599dcbdf6307c92a64a9ce.zip chromium_src-9dec727ff54efb1365599dcbdf6307c92a64a9ce.tar.gz chromium_src-9dec727ff54efb1365599dcbdf6307c92a64a9ce.tar.bz2 |
Revert 91504 - Stop using deprecated factory API for SkDevice
Review URL: http://codereview.chromium.org/7273013
TBR=reed@google.com
Review URL: http://codereview.chromium.org/7193040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91505 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/bitmap_platform_device_mac.h')
-rw-r--r-- | skia/ext/bitmap_platform_device_mac.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/skia/ext/bitmap_platform_device_mac.h b/skia/ext/bitmap_platform_device_mac.h index fddbaad..45fbcab 100644 --- a/skia/ext/bitmap_platform_device_mac.h +++ b/skia/ext/bitmap_platform_device_mac.h @@ -11,6 +11,14 @@ 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 @@ -63,9 +71,8 @@ class BitmapPlatformDevice : public PlatformDevice { // starts accessing pixel data. virtual void onAccessBitmap(SkBitmap*); - virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width, - int height, bool isOpaque, - Usage usage); + // Override SkDevice. + virtual SkDeviceFactory* onNewDeviceFactory(); // Data associated with this device, guaranteed non-null. We hold a reference // to this object. |