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