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

Unified Diff: skia/ext/bitmap_platform_device_linux.h

Issue 125109: Refactor the PlatformContext layer to have only one class. (Closed)
Patch Set: Created 11 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 | « skia/ext/bitmap_platform_device.h ('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
diff --git a/skia/ext/bitmap_platform_device_linux.h b/skia/ext/bitmap_platform_device_linux.h
index bb261bd8c3623cb4d75526458d7b6c16fb550299..a40986c00988cc891a3ed8466d858070d202bdd2 100644
--- a/skia/ext/bitmap_platform_device_linux.h
+++ b/skia/ext/bitmap_platform_device_linux.h
@@ -54,19 +54,18 @@ namespace skia {
// shared memory between the renderer and the main process at least. In this
// case we'll probably create the buffer from a precreated region of memory.
// -----------------------------------------------------------------------------
-class BitmapPlatformDeviceLinux : public PlatformDeviceLinux {
+class BitmapPlatformDevice : public PlatformDevice {
// A reference counted cairo surface
- class BitmapPlatformDeviceLinuxData;
+ class BitmapPlatformDeviceData;
public:
- static BitmapPlatformDeviceLinux* Create(int width, int height,
- bool is_opaque);
+ static BitmapPlatformDevice* Create(int width, int height, bool is_opaque);
+
// This doesn't take ownership of |data|
- static BitmapPlatformDeviceLinux* Create(int width, int height,
- bool is_opaque, uint8_t* data);
- static BitmapPlatformDeviceLinux* Create(int width, int height,
- bool is_opaque,
- cairo_surface_t* surface);
+ static BitmapPlatformDevice* Create(int width, int height,
+ bool is_opaque, uint8_t* data);
+ static BitmapPlatformDevice* Create(int width, int height,
+ bool is_opaque, cairo_surface_t* surface);
// Create a BitmapPlatformDeviceLinux from an already constructed bitmap;
// you should probably be using Create(). This may become private later if
@@ -74,13 +73,12 @@ class BitmapPlatformDeviceLinux : public PlatformDeviceLinux {
// the Windows and Mac versions of this class do.
//
// This object takes ownership of @data.
- BitmapPlatformDeviceLinux(const SkBitmap& other,
- BitmapPlatformDeviceLinuxData* data);
- virtual ~BitmapPlatformDeviceLinux();
- BitmapPlatformDeviceLinux& operator=(const BitmapPlatformDeviceLinux& other);
+ BitmapPlatformDevice(const SkBitmap& other, BitmapPlatformDeviceData* data);
+ virtual ~BitmapPlatformDevice();
+ BitmapPlatformDevice& operator=(const BitmapPlatformDevice& other);
// A stub copy constructor. Needs to be properly implemented.
- BitmapPlatformDeviceLinux(const BitmapPlatformDeviceLinux& other);
+ BitmapPlatformDevice(const BitmapPlatformDevice& other);
// Bitmaps aren't vector graphics.
virtual bool IsVectorial() { return false; }
@@ -92,7 +90,7 @@ class BitmapPlatformDeviceLinux : public PlatformDeviceLinux {
cairo_surface_t* surface() const;
private:
- scoped_refptr<BitmapPlatformDeviceLinuxData> data_;
+ scoped_refptr<BitmapPlatformDeviceData> data_;
};
} // namespace skia
« no previous file with comments | « skia/ext/bitmap_platform_device.h ('k') | skia/ext/bitmap_platform_device_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698