From c6c09d400f06555f8be1005356152bb480f109ab Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 5 Jul 2011 12:41:29 +0000 Subject: 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 --- skia/ext/bitmap_platform_device_win.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to '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 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 -- cgit v1.1