| Index: skia/ext/vector_platform_device_emf_win.h
|
| diff --git a/skia/ext/vector_platform_device_emf_win.h b/skia/ext/vector_platform_device_emf_win.h
|
| index 9baee32e0a463ba3423a87e1a5bbaeb84c769d2e..61ea4413f345ed2746217cfccf4772a0b8d03161 100644
|
| --- a/skia/ext/vector_platform_device_emf_win.h
|
| +++ b/skia/ext/vector_platform_device_emf_win.h
|
| @@ -17,13 +17,15 @@ namespace skia {
|
| // SkCanvas to draw into. This specific device is not not backed by a surface
|
| // and is thus unreadable. This is because the backend is completely vectorial.
|
| // This device is a simple wrapper over a Windows device context (HDC) handle.
|
| -class VectorPlatformDeviceEmf : public SkDevice, public PlatformDevice {
|
| +// TODO(robertphillips): Once Skia's SkBaseDevice is refactored to remove
|
| +// the bitmap-specific entry points, this class should derive from it.
|
| +class VectorPlatformDeviceEmf : public SkBitmapDevice, public PlatformDevice {
|
| public:
|
| - SK_API static SkDevice* CreateDevice(int width, int height, bool isOpaque,
|
| - HANDLE shared_section);
|
| + SK_API static SkBaseDevice* CreateDevice(int width, int height, bool isOpaque,
|
| + HANDLE shared_section);
|
|
|
| // Factory function. The DC is kept as the output context.
|
| - static SkDevice* create(HDC dc, int width, int height);
|
| + static SkBaseDevice* create(HDC dc, int width, int height);
|
|
|
| VectorPlatformDeviceEmf(HDC dc, const SkBitmap& bitmap);
|
| virtual ~VectorPlatformDeviceEmf();
|
| @@ -32,7 +34,7 @@ class VectorPlatformDeviceEmf : public SkDevice, public PlatformDevice {
|
| virtual PlatformSurface BeginPlatformPaint() OVERRIDE;
|
| virtual void DrawToNativeContext(HDC dc, int x, int y,
|
| const RECT* src_rect) OVERRIDE;
|
| - // SkDevice methods.
|
| + // SkBaseDevice methods.
|
| virtual uint32_t getDeviceCapabilities();
|
| virtual void drawPaint(const SkDraw& draw, const SkPaint& paint) OVERRIDE;
|
| virtual void drawPoints(const SkDraw& draw, SkCanvas::PointMode mode,
|
| @@ -67,7 +69,7 @@ class VectorPlatformDeviceEmf : public SkDevice, public PlatformDevice {
|
| const SkColor colors[], SkXfermode* xmode,
|
| const uint16_t indices[], int indexCount,
|
| const SkPaint& paint) OVERRIDE;
|
| - virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y,
|
| + virtual void drawDevice(const SkDraw& draw, SkBaseDevice*, int x, int y,
|
| const SkPaint&) OVERRIDE;
|
|
|
| virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region,
|
| @@ -76,9 +78,9 @@ class VectorPlatformDeviceEmf : public SkDevice, public PlatformDevice {
|
| void LoadClipRegion();
|
|
|
| protected:
|
| - virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
|
| - int height, bool isOpaque,
|
| - Usage usage) OVERRIDE;
|
| + virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
|
| + int height, bool isOpaque,
|
| + Usage usage) OVERRIDE;
|
|
|
| private:
|
| // Applies the SkPaint's painting properties in the current GDI context, if
|
|
|