OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ | 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ |
6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ | 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "skia/ext/platform_device.h" | 10 #include "skia/ext/platform_device.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 HANDLE shared_section); | 25 HANDLE shared_section); |
26 | 26 |
27 // Factory function. The DC is kept as the output context. | 27 // Factory function. The DC is kept as the output context. |
28 static SkBaseDevice* create(HDC dc, int width, int height); | 28 static SkBaseDevice* create(HDC dc, int width, int height); |
29 | 29 |
30 VectorPlatformDeviceEmf(HDC dc, const SkBitmap& bitmap); | 30 VectorPlatformDeviceEmf(HDC dc, const SkBitmap& bitmap); |
31 virtual ~VectorPlatformDeviceEmf(); | 31 virtual ~VectorPlatformDeviceEmf(); |
32 | 32 |
33 // PlatformDevice methods | 33 // PlatformDevice methods |
34 virtual PlatformSurface BeginPlatformPaint() override; | 34 virtual PlatformSurface BeginPlatformPaint() override; |
35 virtual void DrawToNativeContext(HDC dc, int x, int y, | 35 |
36 const RECT* src_rect) override; | |
37 // SkBaseDevice methods. | 36 // SkBaseDevice methods. |
38 virtual void drawPaint(const SkDraw& draw, const SkPaint& paint) override; | 37 virtual void drawPaint(const SkDraw& draw, const SkPaint& paint) override; |
39 virtual void drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, | 38 virtual void drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, |
40 size_t count, const SkPoint[], | 39 size_t count, const SkPoint[], |
41 const SkPaint& paint) override; | 40 const SkPaint& paint) override; |
42 virtual void drawRect(const SkDraw& draw, const SkRect& r, | 41 virtual void drawRect(const SkDraw& draw, const SkRect& r, |
43 const SkPaint& paint) override; | 42 const SkPaint& paint) override; |
44 virtual void drawRRect(const SkDraw&, const SkRRect& rr, | 43 virtual void drawRRect(const SkDraw&, const SkRRect& rr, |
45 const SkPaint& paint) override; | 44 const SkPaint& paint) override; |
46 virtual void drawPath(const SkDraw& draw, const SkPath& path, | 45 virtual void drawPath(const SkDraw& draw, const SkPath& path, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 132 |
134 typedef void (*SkiaEnsureTypefaceCharactersAccessible) | 133 typedef void (*SkiaEnsureTypefaceCharactersAccessible) |
135 (const LOGFONT& font, const wchar_t* text, unsigned int text_length); | 134 (const LOGFONT& font, const wchar_t* text, unsigned int text_length); |
136 | 135 |
137 SK_API void SetSkiaEnsureTypefaceCharactersAccessible( | 136 SK_API void SetSkiaEnsureTypefaceCharactersAccessible( |
138 SkiaEnsureTypefaceCharactersAccessible func); | 137 SkiaEnsureTypefaceCharactersAccessible func); |
139 | 138 |
140 } // namespace skia | 139 } // namespace skia |
141 | 140 |
142 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ | 141 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ |
OLD | NEW |