| 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::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y
, |
| 269 const SkPaint &paint) { |
| 270 Iter iter(fList); |
| 271 while (iter.next()) { |
| 272 iter->drawTextBlob(blob, x, y, paint); |
| 273 } |
| 274 } |
| 275 |
| 268 void SkNWayCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matri
x, | 276 void SkNWayCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matri
x, |
| 269 const SkPaint* paint) { | 277 const SkPaint* paint) { |
| 270 Iter iter(fList); | 278 Iter iter(fList); |
| 271 while (iter.next()) { | 279 while (iter.next()) { |
| 272 iter->drawPicture(picture, matrix, paint); | 280 iter->drawPicture(picture, matrix, paint); |
| 273 } | 281 } |
| 274 } | 282 } |
| 275 | 283 |
| 276 void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount, | 284 void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount, |
| 277 const SkPoint vertices[], const SkPoint texs[], | 285 const SkPoint vertices[], const SkPoint texs[], |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 iter->addComment(kywd, value); | 330 iter->addComment(kywd, value); |
| 323 } | 331 } |
| 324 } | 332 } |
| 325 | 333 |
| 326 void SkNWayCanvas::endCommentGroup() { | 334 void SkNWayCanvas::endCommentGroup() { |
| 327 Iter iter(fList); | 335 Iter iter(fList); |
| 328 while (iter.next()) { | 336 while (iter.next()) { |
| 329 iter->endCommentGroup(); | 337 iter->endCommentGroup(); |
| 330 } | 338 } |
| 331 } | 339 } |
| OLD | NEW |