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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, |
279 const SkPaint& paint) { | 279 const SkPaint& paint) { |
280 Iter iter(fList); | 280 Iter iter(fList); |
281 while (iter.next()) { | 281 while (iter.next()) { |
282 iter->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode, | 282 iter->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode, |
283 indices, indexCount, paint); | 283 indices, indexCount, paint); |
284 } | 284 } |
285 } | 285 } |
286 | 286 |
| 287 void SkNWayCanvas::drawPatch(const SkPatch& patch, const SkPaint& paint) { |
| 288 Iter iter(fList); |
| 289 while (iter.next()) { |
| 290 iter->drawPatch(patch, paint); |
| 291 } |
| 292 } |
| 293 |
287 void SkNWayCanvas::drawData(const void* data, size_t length) { | 294 void SkNWayCanvas::drawData(const void* data, size_t length) { |
288 Iter iter(fList); | 295 Iter iter(fList); |
289 while (iter.next()) { | 296 while (iter.next()) { |
290 iter->drawData(data, length); | 297 iter->drawData(data, length); |
291 } | 298 } |
292 } | 299 } |
293 | 300 |
294 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { | 301 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { |
295 Iter iter(fList); | 302 Iter iter(fList); |
296 while (iter.next()) { | 303 while (iter.next()) { |
(...skipping 15 matching lines...) Expand all Loading... |
312 iter->addComment(kywd, value); | 319 iter->addComment(kywd, value); |
313 } | 320 } |
314 } | 321 } |
315 | 322 |
316 void SkNWayCanvas::endCommentGroup() { | 323 void SkNWayCanvas::endCommentGroup() { |
317 Iter iter(fList); | 324 Iter iter(fList); |
318 while (iter.next()) { | 325 while (iter.next()) { |
319 iter->endCommentGroup(); | 326 iter->endCommentGroup(); |
320 } | 327 } |
321 } | 328 } |
OLD | NEW |