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::onDrawPicture(const SkPicture* picture) { | 268 void SkNWayCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matri
x, |
| 269 const SkPaint* paint) { |
269 Iter iter(fList); | 270 Iter iter(fList); |
270 while (iter.next()) { | 271 while (iter.next()) { |
271 iter->drawPicture(picture); | 272 iter->drawPicture(picture, matrix, paint); |
272 } | 273 } |
273 } | 274 } |
274 | 275 |
275 void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount, | 276 void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount, |
276 const SkPoint vertices[], const SkPoint texs[], | 277 const SkPoint vertices[], const SkPoint texs[], |
277 const SkColor colors[], SkXfermode* xmode, | 278 const SkColor colors[], SkXfermode* xmode, |
278 const uint16_t indices[], int indexCount, | 279 const uint16_t indices[], int indexCount, |
279 const SkPaint& paint) { | 280 const SkPaint& paint) { |
280 Iter iter(fList); | 281 Iter iter(fList); |
281 while (iter.next()) { | 282 while (iter.next()) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 iter->addComment(kywd, value); | 320 iter->addComment(kywd, value); |
320 } | 321 } |
321 } | 322 } |
322 | 323 |
323 void SkNWayCanvas::endCommentGroup() { | 324 void SkNWayCanvas::endCommentGroup() { |
324 Iter iter(fList); | 325 Iter iter(fList); |
325 while (iter.next()) { | 326 while (iter.next()) { |
326 iter->endCommentGroup(); | 327 iter->endCommentGroup(); |
327 } | 328 } |
328 } | 329 } |
OLD | NEW |