Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: skia/ext/bitmap_platform_device_linux.h

Issue 7273013: Stop using deprecated factory API for SkDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/pdf_metafile_cairo_linux.cc ('k') | skia/ext/bitmap_platform_device_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_linux.h
===================================================================
--- skia/ext/bitmap_platform_device_linux.h (revision 91505)
+++ skia/ext/bitmap_platform_device_linux.h (working copy)
@@ -44,13 +44,6 @@
namespace skia {
-class BitmapPlatformDeviceFactory : public SkDeviceFactory {
- public:
- virtual SkDevice* newDevice(SkCanvas* ignored, SkBitmap::Config config,
- int width, int height,
- bool isOpaque, bool isForLayer);
-};
-
// -----------------------------------------------------------------------------
// This is the Linux bitmap backing for Skia. We create a Cairo image surface
// to store the backing buffer. This buffer is BGRA in memory (on little-endian
@@ -93,8 +86,9 @@
virtual cairo_t* BeginPlatformPaint();
protected:
- // Override SkDevice.
- virtual SkDeviceFactory* onNewDeviceFactory();
+ virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
+ int height, bool isOpaque,
+ Usage usage);
private:
static BitmapPlatformDevice* Create(int width, int height, bool is_opaque,
« no previous file with comments | « printing/pdf_metafile_cairo_linux.cc ('k') | skia/ext/bitmap_platform_device_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698