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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const SkPoint verts[], const SkPoint texs[], | 66 const SkPoint verts[], const SkPoint texs[], |
67 const SkColor colors[], SkXfermode* xmode, | 67 const SkColor colors[], SkXfermode* xmode, |
68 const uint16_t indices[], int indexCount, | 68 const uint16_t indices[], int indexCount, |
69 const SkPaint& paint) OVERRIDE; | 69 const SkPaint& paint) OVERRIDE; |
70 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, | 70 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, |
71 const SkPaint&) OVERRIDE; | 71 const SkPaint&) OVERRIDE; |
72 | 72 |
73 | 73 |
74 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, | 74 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, |
75 const SkClipStack&); | 75 const SkClipStack&); |
76 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); | 76 virtual void DrawToNativeContext(HDC dc, int x, int y, const RECT* src_rect); |
77 virtual bool IsVectorial() { return true; } | 77 virtual bool IsVectorial() { return true; } |
78 | 78 |
79 void LoadClipRegion(); | 79 void LoadClipRegion(); |
80 bool alpha_blend_used() const { return alpha_blend_used_; } | 80 bool alpha_blend_used() const { return alpha_blend_used_; } |
81 | 81 |
82 protected: | 82 protected: |
83 // Override from SkDevice (through PlatformDevice). | 83 // Override from SkDevice (through PlatformDevice). |
84 virtual SkDeviceFactory* onNewDeviceFactory(); | 84 virtual SkDeviceFactory* onNewDeviceFactory(); |
85 | 85 |
86 private: | 86 private: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // True if AlphaBlend() was called during this print. | 133 // True if AlphaBlend() was called during this print. |
134 bool alpha_blend_used_; | 134 bool alpha_blend_used_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceEmf); | 136 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceEmf); |
137 }; | 137 }; |
138 | 138 |
139 } // namespace skia | 139 } // namespace skia |
140 | 140 |
141 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ | 141 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ |
142 | 142 |
OLD | NEW |