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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } | 198 } |
199 } | 199 } |
200 | 200 |
201 void SkNWayCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { | 201 void SkNWayCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { |
202 Iter iter(fList); | 202 Iter iter(fList); |
203 while (iter.next()) { | 203 while (iter.next()) { |
204 iter->drawRRect(rrect, paint); | 204 iter->drawRRect(rrect, paint); |
205 } | 205 } |
206 } | 206 } |
207 | 207 |
| 208 void SkNWayCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, |
| 209 const SkPaint& paint) { |
| 210 Iter iter(fList); |
| 211 while (iter.next()) { |
| 212 iter->drawDRRect(outer, inner, paint); |
| 213 } |
| 214 } |
| 215 |
208 void SkNWayCanvas::drawPath(const SkPath& path, const SkPaint& paint) { | 216 void SkNWayCanvas::drawPath(const SkPath& path, const SkPaint& paint) { |
209 Iter iter(fList); | 217 Iter iter(fList); |
210 while (iter.next()) { | 218 while (iter.next()) { |
211 iter->drawPath(path, paint); | 219 iter->drawPath(path, paint); |
212 } | 220 } |
213 } | 221 } |
214 | 222 |
215 void SkNWayCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, | 223 void SkNWayCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, |
216 const SkPaint* paint) { | 224 const SkPaint* paint) { |
217 Iter iter(fList); | 225 Iter iter(fList); |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 iter->addComment(kywd, value); | 350 iter->addComment(kywd, value); |
343 } | 351 } |
344 } | 352 } |
345 | 353 |
346 void SkNWayCanvas::endCommentGroup() { | 354 void SkNWayCanvas::endCommentGroup() { |
347 Iter iter(fList); | 355 Iter iter(fList); |
348 while (iter.next()) { | 356 while (iter.next()) { |
349 iter->endCommentGroup(); | 357 iter->endCommentGroup(); |
350 } | 358 } |
351 } | 359 } |
OLD | NEW |