OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "SkNWayCanvas.h" | 8 #include "SkNWayCanvas.h" |
9 | 9 |
10 SkNWayCanvas::SkNWayCanvas(int width, int height) | 10 SkNWayCanvas::SkNWayCanvas(int width, int height) |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 } | 258 } |
259 | 259 |
260 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S
kPath& path, | 260 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S
kPath& path, |
261 const SkMatrix* matrix, const SkPaint& paint
) { | 261 const SkMatrix* matrix, const SkPaint& paint
) { |
262 Iter iter(fList); | 262 Iter iter(fList); |
263 while (iter.next()) { | 263 while (iter.next()) { |
264 iter->drawTextOnPath(text, byteLength, path, matrix, paint); | 264 iter->drawTextOnPath(text, byteLength, path, matrix, paint); |
265 } | 265 } |
266 } | 266 } |
267 | 267 |
268 void SkNWayCanvas::drawPicture(SkPicture& picture) { | 268 void SkNWayCanvas::onDrawPicture(const SkPicture* picture) { |
269 Iter iter(fList); | 269 Iter iter(fList); |
270 while (iter.next()) { | 270 while (iter.next()) { |
271 iter->drawPicture(picture); | 271 iter->drawPicture(picture); |
272 } | 272 } |
273 } | 273 } |
274 | 274 |
275 void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount, | 275 void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount, |
276 const SkPoint vertices[], const SkPoint texs[], | 276 const SkPoint vertices[], const SkPoint texs[], |
277 const SkColor colors[], SkXfermode* xmode, | 277 const SkColor colors[], SkXfermode* xmode, |
278 const uint16_t indices[], int indexCount, | 278 const uint16_t indices[], int indexCount, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 iter->addComment(kywd, value); | 312 iter->addComment(kywd, value); |
313 } | 313 } |
314 } | 314 } |
315 | 315 |
316 void SkNWayCanvas::endCommentGroup() { | 316 void SkNWayCanvas::endCommentGroup() { |
317 Iter iter(fList); | 317 Iter iter(fList); |
318 while (iter.next()) { | 318 while (iter.next()) { |
319 iter->endCommentGroup(); | 319 iter->endCommentGroup(); |
320 } | 320 } |
321 } | 321 } |
OLD | NEW |