| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 297 |
| 298 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4]
, | 298 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4]
, |
| 299 const SkPoint texCoords[4], SkXfermode* xmode, | 299 const SkPoint texCoords[4], SkXfermode* xmode, |
| 300 const SkPaint& paint) { | 300 const SkPaint& paint) { |
| 301 Iter iter(fList); | 301 Iter iter(fList); |
| 302 while (iter.next()) { | 302 while (iter.next()) { |
| 303 iter->drawPatch(cubics, colors, texCoords, xmode, paint); | 303 iter->drawPatch(cubics, colors, texCoords, xmode, paint); |
| 304 } | 304 } |
| 305 } | 305 } |
| 306 | 306 |
| 307 void SkNWayCanvas::drawData(const void* data, size_t length) { | |
| 308 Iter iter(fList); | |
| 309 while (iter.next()) { | |
| 310 iter->drawData(data, length); | |
| 311 } | |
| 312 } | |
| 313 | |
| 314 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { | 307 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { |
| 315 Iter iter(fList); | 308 Iter iter(fList); |
| 316 while (iter.next()) { | 309 while (iter.next()) { |
| 317 iter->setDrawFilter(filter); | 310 iter->setDrawFilter(filter); |
| 318 } | 311 } |
| 319 return this->INHERITED::setDrawFilter(filter); | 312 return this->INHERITED::setDrawFilter(filter); |
| 320 } | 313 } |
| 321 | 314 |
| 322 void SkNWayCanvas::beginCommentGroup(const char* description) { | 315 void SkNWayCanvas::beginCommentGroup(const char* description) { |
| 323 Iter iter(fList); | 316 Iter iter(fList); |
| 324 while (iter.next()) { | 317 while (iter.next()) { |
| 325 iter->beginCommentGroup(description); | 318 iter->beginCommentGroup(description); |
| 326 } | 319 } |
| 327 } | 320 } |
| 328 | 321 |
| 329 void SkNWayCanvas::addComment(const char* kywd, const char* value) { | 322 void SkNWayCanvas::addComment(const char* kywd, const char* value) { |
| 330 Iter iter(fList); | 323 Iter iter(fList); |
| 331 while (iter.next()) { | 324 while (iter.next()) { |
| 332 iter->addComment(kywd, value); | 325 iter->addComment(kywd, value); |
| 333 } | 326 } |
| 334 } | 327 } |
| 335 | 328 |
| 336 void SkNWayCanvas::endCommentGroup() { | 329 void SkNWayCanvas::endCommentGroup() { |
| 337 Iter iter(fList); | 330 Iter iter(fList); |
| 338 while (iter.next()) { | 331 while (iter.next()) { |
| 339 iter->endCommentGroup(); | 332 iter->endCommentGroup(); |
| 340 } | 333 } |
| 341 } | 334 } |
| OLD | NEW |