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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 } | 284 } |
285 } | 285 } |
286 | 286 |
287 void SkNWayCanvas::drawData(const void* data, size_t length) { | 287 void SkNWayCanvas::drawData(const void* data, size_t length) { |
288 Iter iter(fList); | 288 Iter iter(fList); |
289 while (iter.next()) { | 289 while (iter.next()) { |
290 iter->drawData(data, length); | 290 iter->drawData(data, length); |
291 } | 291 } |
292 } | 292 } |
293 | 293 |
294 SkBounder* SkNWayCanvas::setBounder(SkBounder* bounder) { | |
295 Iter iter(fList); | |
296 while (iter.next()) { | |
297 iter->setBounder(bounder); | |
298 } | |
299 return this->INHERITED::setBounder(bounder); | |
300 } | |
301 | |
302 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { | 294 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { |
303 Iter iter(fList); | 295 Iter iter(fList); |
304 while (iter.next()) { | 296 while (iter.next()) { |
305 iter->setDrawFilter(filter); | 297 iter->setDrawFilter(filter); |
306 } | 298 } |
307 return this->INHERITED::setDrawFilter(filter); | 299 return this->INHERITED::setDrawFilter(filter); |
308 } | 300 } |
309 | 301 |
310 void SkNWayCanvas::beginCommentGroup(const char* description) { | 302 void SkNWayCanvas::beginCommentGroup(const char* description) { |
311 Iter iter(fList); | 303 Iter iter(fList); |
312 while (iter.next()) { | 304 while (iter.next()) { |
313 iter->beginCommentGroup(description); | 305 iter->beginCommentGroup(description); |
314 } | 306 } |
315 } | 307 } |
316 | 308 |
317 void SkNWayCanvas::addComment(const char* kywd, const char* value) { | 309 void SkNWayCanvas::addComment(const char* kywd, const char* value) { |
318 Iter iter(fList); | 310 Iter iter(fList); |
319 while (iter.next()) { | 311 while (iter.next()) { |
320 iter->addComment(kywd, value); | 312 iter->addComment(kywd, value); |
321 } | 313 } |
322 } | 314 } |
323 | 315 |
324 void SkNWayCanvas::endCommentGroup() { | 316 void SkNWayCanvas::endCommentGroup() { |
325 Iter iter(fList); | 317 Iter iter(fList); |
326 while (iter.next()) { | 318 while (iter.next()) { |
327 iter->endCommentGroup(); | 319 iter->endCommentGroup(); |
328 } | 320 } |
329 } | 321 } |
OLD | NEW |