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

Unified Diff: skia/ext/platform_device_mac.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_linux.cc ('k') | skia/ext/platform_device_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_device_mac.h
diff --git a/skia/ext/platform_device_mac.h b/skia/ext/platform_device_mac.h
index 2005e89ae0686b92b28579a8ab783c6a3d58221f..97efd7c1b2f497208083f56923f79fc2a86c8191 100644
--- a/skia/ext/platform_device_mac.h
+++ b/skia/ext/platform_device_mac.h
@@ -20,8 +20,10 @@ namespace skia {
// functions.
// This class is abstract and must be subclassed. It provides the basic
// interface to implement it either with or without a bitmap backend.
-class PlatformDeviceMac : public SkDevice {
+class PlatformDevice : public SkDevice {
public:
+ typedef CGContextRef PlatformSurface;
+
// The CGContext that corresponds to the bitmap, used for CoreGraphics
// operations drawing into the bitmap. This is possibly heavyweight, so it
// should exist only during one pass of rendering.
@@ -52,7 +54,7 @@ class PlatformDeviceMac : public SkDevice {
protected:
// Forwards |bitmap| to SkDevice's constructor.
- PlatformDeviceMac(const SkBitmap& bitmap);
+ PlatformDevice(const SkBitmap& bitmap);
// Loads the specified Skia transform into the device context
static void LoadTransformToCGContext(CGContextRef context,
« no previous file with comments | « skia/ext/platform_device_linux.cc ('k') | skia/ext/platform_device_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698