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

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, 6 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 | « no previous file | skia/ext/bitmap_platform_device_linux.cc » ('j') | skia/ext/bitmap_platform_device_linux.cc » ('J')
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 90617)
+++ 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,8 @@
virtual cairo_t* BeginPlatformPaint();
protected:
- // Override SkDevice.
- virtual SkDeviceFactory* onNewDeviceFactory();
+ virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
vandebo (ex-Chrome) 2011/06/28 19:07:54 nit: extra space after Config. (multiple occurrenc
+ int height, bool isOpaque, Usage);
vandebo (ex-Chrome) 2011/06/28 19:07:54 nit: 'Usage usage' or 'SkDevice:Usage usage' (mult
vandebo (ex-Chrome) 2011/06/30 21:58:36 Yea, the ask is Usage usage, or if you can think o
private:
static BitmapPlatformDevice* Create(int width, int height, bool is_opaque,
« no previous file with comments | « no previous file | skia/ext/bitmap_platform_device_linux.cc » ('j') | skia/ext/bitmap_platform_device_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698