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

Unified Diff: skia/ext/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/platform_device.h ('k') | skia/ext/platform_device_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_device_linux.h
diff --git a/skia/ext/platform_device_linux.h b/skia/ext/platform_device_linux.h
index e438d85a382d9888b3916ca55b140566db977cd8..c23a4d8280970c1b4a23adce18eabd014ebcb7b1 100644
--- a/skia/ext/platform_device_linux.h
+++ b/skia/ext/platform_device_linux.h
@@ -12,8 +12,10 @@ typedef struct _cairo_surface cairo_surface_t;
namespace skia {
// Blindly copying the mac hierarchy.
-class PlatformDeviceLinux : public SkDevice {
+class PlatformDevice : public SkDevice {
public:
+ typedef cairo_surface_t* PlatformSurface;
+
// Returns if the preferred rendering engine is vectorial or bitmap based.
virtual bool IsVectorial() = 0;
@@ -21,7 +23,7 @@ class PlatformDeviceLinux : public SkDevice {
protected:
// Forwards |bitmap| to SkDevice's constructor.
- PlatformDeviceLinux(const SkBitmap& bitmap);
+ PlatformDevice(const SkBitmap& bitmap);
};
} // namespace skia
« no previous file with comments | « skia/ext/platform_device.h ('k') | skia/ext/platform_device_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698