OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_WIN_H_ | 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_WIN_H_ |
6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_WIN_H_ | 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, | 69 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, |
70 int vertexCount, | 70 int vertexCount, |
71 const SkPoint verts[], const SkPoint texs[], | 71 const SkPoint verts[], const SkPoint texs[], |
72 const SkColor colors[], SkXfermode* xmode, | 72 const SkColor colors[], SkXfermode* xmode, |
73 const uint16_t indices[], int indexCount, | 73 const uint16_t indices[], int indexCount, |
74 const SkPaint& paint) OVERRIDE; | 74 const SkPaint& paint) OVERRIDE; |
75 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, | 75 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, |
76 const SkPaint&) OVERRIDE; | 76 const SkPaint&) OVERRIDE; |
77 | 77 |
78 | 78 |
79 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region); | 79 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, |
| 80 const SkClipStack&); |
80 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); | 81 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); |
81 virtual bool IsVectorial() { return true; } | 82 virtual bool IsVectorial() { return true; } |
82 | 83 |
83 void LoadClipRegion(); | 84 void LoadClipRegion(); |
84 bool alpha_blend_used() const { return alpha_blend_used_; } | 85 bool alpha_blend_used() const { return alpha_blend_used_; } |
85 | 86 |
86 private: | 87 private: |
87 // Applies the SkPaint's painting properties in the current GDI context, if | 88 // Applies the SkPaint's painting properties in the current GDI context, if |
88 // possible. If GDI can't support all paint's properties, returns false. It | 89 // possible. If GDI can't support all paint's properties, returns false. It |
89 // doesn't execute the "commands" in SkPaint. | 90 // doesn't execute the "commands" in SkPaint. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 136 |
136 // Copy & assign are not supported. | 137 // Copy & assign are not supported. |
137 VectorPlatformDevice(const VectorPlatformDevice&); | 138 VectorPlatformDevice(const VectorPlatformDevice&); |
138 const VectorPlatformDevice& operator=(const VectorPlatformDevice&); | 139 const VectorPlatformDevice& operator=(const VectorPlatformDevice&); |
139 }; | 140 }; |
140 | 141 |
141 } // namespace skia | 142 } // namespace skia |
142 | 143 |
143 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_WIN_H_ | 144 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_WIN_H_ |
144 | 145 |
OLD | NEW |