summaryrefslogtreecommitdiffstats
path: root/skia/ext/bitmap_platform_device_win.h
diff options
context:
space:
mode:
authorreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-05 12:41:29 +0000
committerreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-05 12:41:29 +0000
commitc6c09d400f06555f8be1005356152bb480f109ab (patch)
tree3f5f13a9512624c40d037050dc3a93fecfc3e8b4 /skia/ext/bitmap_platform_device_win.h
parenteeba5376ef0501077c43cd85274a770c0f76b54a (diff)
downloadchromium_src-c6c09d400f06555f8be1005356152bb480f109ab.zip
chromium_src-c6c09d400f06555f8be1005356152bb480f109ab.tar.gz
chromium_src-c6c09d400f06555f8be1005356152bb480f109ab.tar.bz2
Stop using deprecated factory API for SkDevice
Review URL: http://codereview.chromium.org/7273013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91504 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/bitmap_platform_device_win.h')
-rw-r--r--skia/ext/bitmap_platform_device_win.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/skia/ext/bitmap_platform_device_win.h b/skia/ext/bitmap_platform_device_win.h
index ea6bcc3..270dc08 100644
--- a/skia/ext/bitmap_platform_device_win.h
+++ b/skia/ext/bitmap_platform_device_win.h
@@ -11,13 +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 Windows can also write
// to. BitmapPlatformDevice creates a bitmap using CreateDIBSection() in a
@@ -75,8 +68,9 @@ class SK_API BitmapPlatformDevice : public PlatformDevice {
// starts accessing pixel data.
virtual void onAccessBitmap(SkBitmap* bitmap);
- // Override SkDevice.
- virtual SkDeviceFactory* onNewDeviceFactory();
+ virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
+ int height, bool isOpaque,
+ Usage usage);
private:
// Reference counted data that can be shared between multiple devices. This