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_LINUX_H_ | 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_LINUX_H_ |
6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_LINUX_H_ | 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_LINUX_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 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 drawVertices(const SkDraw& draw, SkCanvas::VertexMode, | 73 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, |
74 int vertexCount, | 74 int vertexCount, |
75 const SkPoint verts[], const SkPoint texs[], | 75 const SkPoint verts[], const SkPoint texs[], |
76 const SkColor colors[], SkXfermode* xmode, | 76 const SkColor colors[], SkXfermode* xmode, |
77 const uint16_t indices[], int indexCount, | 77 const uint16_t indices[], int indexCount, |
78 const SkPaint& paint) OVERRIDE; | 78 const SkPaint& paint) OVERRIDE; |
79 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, | 79 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, |
80 const SkPaint&) OVERRIDE; | 80 const SkPaint&) OVERRIDE; |
81 | 81 |
82 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region); | 82 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, |
| 83 const SkClipStack&); |
83 virtual PlatformSurface beginPlatformPaint(); | 84 virtual PlatformSurface beginPlatformPaint(); |
84 virtual bool IsVectorial(); | 85 virtual bool IsVectorial(); |
85 | 86 |
86 protected: | 87 protected: |
87 explicit VectorPlatformDevice(PlatformSurface context, | 88 explicit VectorPlatformDevice(PlatformSurface context, |
88 const SkBitmap& bitmap); | 89 const SkBitmap& bitmap); |
89 | 90 |
90 private: | 91 private: |
91 // Apply paint's color in the context. | 92 // Apply paint's color in the context. |
92 void ApplyPaintColor(const SkPaint& paint); | 93 void ApplyPaintColor(const SkPaint& paint); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 PlatformSurface context_; | 130 PlatformSurface context_; |
130 | 131 |
131 // Copy & assign are not supported. | 132 // Copy & assign are not supported. |
132 VectorPlatformDevice(const VectorPlatformDevice&); | 133 VectorPlatformDevice(const VectorPlatformDevice&); |
133 const VectorPlatformDevice& operator=(const VectorPlatformDevice&); | 134 const VectorPlatformDevice& operator=(const VectorPlatformDevice&); |
134 }; | 135 }; |
135 | 136 |
136 } // namespace skia | 137 } // namespace skia |
137 | 138 |
138 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_LINUX_H_ | 139 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_LINUX_H_ |
OLD | NEW |