OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_ANALYSIS_CANVAS_H_ | 5 #ifndef SKIA_EXT_ANALYSIS_CANVAS_H_ |
6 #define SKIA_EXT_ANALYSIS_CANVAS_H_ | 6 #define SKIA_EXT_ANALYSIS_CANVAS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "third_party/skia/include/core/SkBitmapDevice.h" | 9 #include "third_party/skia/include/core/SkBitmapDevice.h" |
10 #include "third_party/skia/include/core/SkCanvas.h" | 10 #include "third_party/skia/include/core/SkCanvas.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const SkScalar pos[], | 122 const SkScalar pos[], |
123 SkScalar const_y, | 123 SkScalar const_y, |
124 int scalars_per_pos, | 124 int scalars_per_pos, |
125 const SkPaint& paint) OVERRIDE; | 125 const SkPaint& paint) OVERRIDE; |
126 virtual void drawTextOnPath(const SkDraw& draw, | 126 virtual void drawTextOnPath(const SkDraw& draw, |
127 const void* text, | 127 const void* text, |
128 size_t len, | 128 size_t len, |
129 const SkPath& path, | 129 const SkPath& path, |
130 const SkMatrix* matrix, | 130 const SkMatrix* matrix, |
131 const SkPaint& paint) OVERRIDE; | 131 const SkPaint& paint) OVERRIDE; |
132 #ifdef SK_BUILD_FOR_ANDROID | |
133 virtual void drawPosTextOnPath(const SkDraw& draw, | |
134 const void* text, | |
135 size_t len, | |
136 const SkPoint pos[], | |
137 const SkPaint& paint, | |
138 const SkPath& path, | |
139 const SkMatrix* matrix) OVERRIDE; | |
140 #endif | |
141 virtual void drawVertices(const SkDraw& draw, | 132 virtual void drawVertices(const SkDraw& draw, |
142 SkCanvas::VertexMode vertex_mode, | 133 SkCanvas::VertexMode vertex_mode, |
143 int vertex_count, | 134 int vertex_count, |
144 const SkPoint verts[], | 135 const SkPoint verts[], |
145 const SkPoint texs[], | 136 const SkPoint texs[], |
146 const SkColor colors[], | 137 const SkColor colors[], |
147 SkXfermode* xmode, | 138 SkXfermode* xmode, |
148 const uint16_t indices[], | 139 const uint16_t indices[], |
149 int index_count, | 140 int index_count, |
150 const SkPaint& paint) OVERRIDE; | 141 const SkPaint& paint) OVERRIDE; |
(...skipping 11 matching lines...) Expand all Loading... |
162 bool is_solid_color_; | 153 bool is_solid_color_; |
163 SkColor color_; | 154 SkColor color_; |
164 bool is_transparent_; | 155 bool is_transparent_; |
165 bool has_text_; | 156 bool has_text_; |
166 }; | 157 }; |
167 | 158 |
168 } // namespace skia | 159 } // namespace skia |
169 | 160 |
170 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ | 161 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ |
171 | 162 |
OLD | NEW |