| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 } | 183 } |
| 184 } | 184 } |
| 185 | 185 |
| 186 void SkNWayCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { | 186 void SkNWayCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { |
| 187 Iter iter(fList); | 187 Iter iter(fList); |
| 188 while (iter.next()) { | 188 while (iter.next()) { |
| 189 iter->drawOval(rect, paint); | 189 iter->drawOval(rect, paint); |
| 190 } | 190 } |
| 191 } | 191 } |
| 192 | 192 |
| 193 void SkNWayCanvas::drawRect(const SkRect& rect, const SkPaint& paint) { | 193 void SkNWayCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { |
| 194 Iter iter(fList); | 194 Iter iter(fList); |
| 195 while (iter.next()) { | 195 while (iter.next()) { |
| 196 iter->drawRect(rect, paint); | 196 iter->drawRect(rect, paint); |
| 197 } | 197 } |
| 198 } | 198 } |
| 199 | 199 |
| 200 void SkNWayCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { | 200 void SkNWayCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { |
| 201 Iter iter(fList); | 201 Iter iter(fList); |
| 202 while (iter.next()) { | 202 while (iter.next()) { |
| 203 iter->drawRRect(rrect, paint); | 203 iter->drawRRect(rrect, paint); |
| 204 } | 204 } |
| 205 } | 205 } |
| 206 | 206 |
| 207 void SkNWayCanvas::drawPath(const SkPath& path, const SkPaint& paint) { | 207 void SkNWayCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { |
| 208 Iter iter(fList); | 208 Iter iter(fList); |
| 209 while (iter.next()) { | 209 while (iter.next()) { |
| 210 iter->drawPath(path, paint); | 210 iter->drawPath(path, paint); |
| 211 } | 211 } |
| 212 } | 212 } |
| 213 | 213 |
| 214 void SkNWayCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, | 214 void SkNWayCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, |
| 215 const SkPaint* paint) { | 215 const SkPaint* paint) { |
| 216 Iter iter(fList); | 216 Iter iter(fList); |
| 217 while (iter.next()) { | 217 while (iter.next()) { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 iter->addComment(kywd, value); | 326 iter->addComment(kywd, value); |
| 327 } | 327 } |
| 328 } | 328 } |
| 329 | 329 |
| 330 void SkNWayCanvas::endCommentGroup() { | 330 void SkNWayCanvas::endCommentGroup() { |
| 331 Iter iter(fList); | 331 Iter iter(fList); |
| 332 while (iter.next()) { | 332 while (iter.next()) { |
| 333 iter->endCommentGroup(); | 333 iter->endCommentGroup(); |
| 334 } | 334 } |
| 335 } | 335 } |
| OLD | NEW |