OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkTrackDevice_DEFINED | 8 #ifndef SkTrackDevice_DEFINED |
9 #define SkTrackDevice_DEFINED | 9 #define SkTrackDevice_DEFINED |
10 | 10 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 } | 141 } |
142 | 142 |
143 virtual void drawTextOnPath(const SkDraw& dummy1, const void* text, size_t l
en, | 143 virtual void drawTextOnPath(const SkDraw& dummy1, const void* text, size_t l
en, |
144 const SkPath& path, const SkMatrix* matrix, | 144 const SkPath& path, const SkMatrix* matrix, |
145 const SkPaint& paint) { | 145 const SkPaint& paint) { |
146 before(); | 146 before(); |
147 INHERITED::drawTextOnPath(dummy1, text, len, path, matrix, paint); | 147 INHERITED::drawTextOnPath(dummy1, text, len, path, matrix, paint); |
148 after(); | 148 after(); |
149 } | 149 } |
150 | 150 |
151 #ifdef SK_BUILD_FOR_ANDROID | |
152 virtual void drawPosTextOnPath(const SkDraw& draw, const void* text, size_t
len, | |
153 const SkPoint pos[], const SkPaint& paint, | |
154 const SkPath& path, const SkMatrix* matrix)
{ | |
155 before(); | |
156 INHERITED::drawPosTextOnPath(draw, text, len, pos, paint, path, matrix); | |
157 after(); | |
158 } | |
159 #endif | |
160 virtual void drawVertices(const SkDraw& dummy1, SkCanvas::VertexMode dummy2,
int vertexCount, | 151 virtual void drawVertices(const SkDraw& dummy1, SkCanvas::VertexMode dummy2,
int vertexCount, |
161 const SkPoint verts[], const SkPoint texs[], | 152 const SkPoint verts[], const SkPoint texs[], |
162 const SkColor colors[], SkXfermode* xmode, | 153 const SkColor colors[], SkXfermode* xmode, |
163 const uint16_t indices[], int indexCount, | 154 const uint16_t indices[], int indexCount, |
164 const SkPaint& paint) { | 155 const SkPaint& paint) { |
165 before(); | 156 before(); |
166 INHERITED::drawVertices(dummy1, dummy2, vertexCount,verts, texs,colors,
xmode, indices, | 157 INHERITED::drawVertices(dummy1, dummy2, vertexCount,verts, texs,colors,
xmode, indices, |
167 indexCount, paint); | 158 indexCount, paint); |
168 after(); | 159 after(); |
169 } | 160 } |
(...skipping 19 matching lines...) Expand all Loading... |
189 } | 180 } |
190 } | 181 } |
191 | 182 |
192 private: | 183 private: |
193 SkTracker* fTracker; | 184 SkTracker* fTracker; |
194 | 185 |
195 typedef SkBitmapDevice INHERITED; | 186 typedef SkBitmapDevice INHERITED; |
196 }; | 187 }; |
197 | 188 |
198 #endif // SkTrackDevice_DEFINED | 189 #endif // SkTrackDevice_DEFINED |
OLD | NEW |