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 static SkBitmap make_noconfig_bm(int width, int height) { | 10 static SkBitmap make_noconfig_bm(int width, int height) { |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 return this->INHERITED::setBounder(bounder); | 304 return this->INHERITED::setBounder(bounder); |
305 } | 305 } |
306 | 306 |
307 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { | 307 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { |
308 Iter iter(fList); | 308 Iter iter(fList); |
309 while (iter.next()) { | 309 while (iter.next()) { |
310 iter->setDrawFilter(filter); | 310 iter->setDrawFilter(filter); |
311 } | 311 } |
312 return this->INHERITED::setDrawFilter(filter); | 312 return this->INHERITED::setDrawFilter(filter); |
313 } | 313 } |
| 314 |
| 315 void SkNWayCanvas::beginCommentGroup(const char* description) { |
| 316 Iter iter(fList); |
| 317 while (iter.next()) { |
| 318 iter->beginCommentGroup(description); |
| 319 } |
| 320 } |
| 321 |
| 322 void SkNWayCanvas::addComment(const char* kywd, const char* value) { |
| 323 Iter iter(fList); |
| 324 while (iter.next()) { |
| 325 iter->addComment(kywd, value); |
| 326 } |
| 327 } |
| 328 |
| 329 void SkNWayCanvas::endCommentGroup() { |
| 330 Iter iter(fList); |
| 331 while (iter.next()) { |
| 332 iter->endCommentGroup(); |
| 333 } |
| 334 } |
OLD | NEW |