Index: skia/ext/platform_device_mac.h |
=================================================================== |
--- skia/ext/platform_device_mac.h (revision 97282) |
+++ skia/ext/platform_device_mac.h (working copy) |
@@ -27,7 +27,7 @@ |
// 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 PlatformDevice : public SkDevice { |
+class PlatformDevice { |
public: |
typedef CGContextRef PlatformSurface; |
@@ -66,12 +66,13 @@ |
const SkMatrix& transformation); |
protected: |
- // Forwards |bitmap| to SkDevice's constructor. |
- PlatformDevice(const SkBitmap& bitmap); |
+ PlatformDevice(SkDevice* device); |
// Loads the specified Skia transform into the device context |
static void LoadTransformToCGContext(CGContextRef context, |
const SkMatrix& matrix); |
+ |
+ SkDevice* device_; |
}; |
} // namespace skia |