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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const SkPaint& paint) OVERRIDE; | 72 const SkPaint& paint) OVERRIDE; |
73 virtual void drawDevice(const SkDraw& draw, SkBaseDevice*, int x, int y, | 73 virtual void drawDevice(const SkDraw& draw, SkBaseDevice*, int x, int y, |
74 const SkPaint&) OVERRIDE; | 74 const SkPaint&) OVERRIDE; |
75 | 75 |
76 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, | 76 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, |
77 const SkClipStack&) OVERRIDE; | 77 const SkClipStack&) OVERRIDE; |
78 | 78 |
79 void LoadClipRegion(); | 79 void LoadClipRegion(); |
80 | 80 |
81 protected: | 81 protected: |
82 #ifdef SK_SUPPORT_LEGACY_COMPATIBLEDEVICE_CONFIG | |
83 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config, int width, | |
84 int height, bool isOpaque, | |
85 Usage usage) OVERRIDE; | |
86 #endif | |
87 virtual SkBaseDevice* onCreateDevice(const SkImageInfo& info, | 82 virtual SkBaseDevice* onCreateDevice(const SkImageInfo& info, |
88 Usage usage) OVERRIDE; | 83 Usage usage) OVERRIDE; |
89 | 84 |
90 private: | 85 private: |
91 // Applies the SkPaint's painting properties in the current GDI context, if | 86 // Applies the SkPaint's painting properties in the current GDI context, if |
92 // possible. If GDI can't support all paint's properties, returns false. It | 87 // possible. If GDI can't support all paint's properties, returns false. It |
93 // doesn't execute the "commands" in SkPaint. | 88 // doesn't execute the "commands" in SkPaint. |
94 bool ApplyPaint(const SkPaint& paint); | 89 bool ApplyPaint(const SkPaint& paint); |
95 | 90 |
96 // Selects a new object in the device context. It can be a pen, a brush, a | 91 // Selects a new object in the device context. It can be a pen, a brush, a |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 134 |
140 typedef void (*SkiaEnsureTypefaceCharactersAccessible) | 135 typedef void (*SkiaEnsureTypefaceCharactersAccessible) |
141 (const LOGFONT& font, const wchar_t* text, unsigned int text_length); | 136 (const LOGFONT& font, const wchar_t* text, unsigned int text_length); |
142 | 137 |
143 SK_API void SetSkiaEnsureTypefaceCharactersAccessible( | 138 SK_API void SetSkiaEnsureTypefaceCharactersAccessible( |
144 SkiaEnsureTypefaceCharactersAccessible func); | 139 SkiaEnsureTypefaceCharactersAccessible func); |
145 | 140 |
146 } // namespace skia | 141 } // namespace skia |
147 | 142 |
148 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ | 143 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ |
OLD | NEW |