Index: skia/ext/vector_platform_device_skia.h |
=================================================================== |
--- skia/ext/vector_platform_device_skia.h (revision 91504) |
+++ skia/ext/vector_platform_device_skia.h (working copy) |
@@ -22,6 +22,15 @@ |
class BitmapPlatformDevice; |
+class VectorPlatformDeviceSkiaFactory : public SkDeviceFactory { |
+ public: |
+ virtual SkDevice* newDevice(SkCanvas* notUsed, SkBitmap::Config config, |
+ int width, int height, bool isOpaque, |
+ bool isForLayer); |
+ private: |
+ SkPDFDeviceFactory factory_; |
+}; |
+ |
class VectorPlatformDeviceSkia : public PlatformDevice { |
public: |
SK_API VectorPlatformDeviceSkia(SkPDFDevice* pdf_device); |
@@ -80,9 +89,8 @@ |
const SkPaint&); |
protected: |
- virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width, |
- int height, bool isOpaque, |
- Usage usage); |
+ // Override from SkDevice (through PlatformDevice). |
+ virtual SkDeviceFactory* onNewDeviceFactory(); |
private: |
SkRefPtr<SkPDFDevice> pdf_device_; |