| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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()) { |
| 218 iter->drawBitmap(bitmap, x, y, paint); | 218 iter->drawBitmap(bitmap, x, y, paint); |
| 219 } | 219 } |
| 220 } | 220 } |
| 221 | 221 |
| 222 void SkNWayCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* sr
c, | 222 void SkNWayCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* sr
c, |
| 223 const SkRect& dst, const SkPaint* paint) { | 223 const SkRect& dst, const SkPaint* paint, |
| 224 DrawBitmapRectFlags flags) { |
| 224 Iter iter(fList); | 225 Iter iter(fList); |
| 225 while (iter.next()) { | 226 while (iter.next()) { |
| 226 iter->drawBitmapRectToRect(bitmap, src, dst, paint); | 227 iter->drawBitmapRectToRect(bitmap, src, dst, paint, flags); |
| 227 } | 228 } |
| 228 } | 229 } |
| 229 | 230 |
| 230 void SkNWayCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 231 void SkNWayCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
| 231 const SkPaint* paint) { | 232 const SkPaint* paint) { |
| 232 Iter iter(fList); | 233 Iter iter(fList); |
| 233 while (iter.next()) { | 234 while (iter.next()) { |
| 234 iter->drawBitmapMatrix(bitmap, m, paint); | 235 iter->drawBitmapMatrix(bitmap, m, paint); |
| 235 } | 236 } |
| 236 } | 237 } |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 iter->addComment(kywd, value); | 326 iter->addComment(kywd, value); |
| 326 } | 327 } |
| 327 } | 328 } |
| 328 | 329 |
| 329 void SkNWayCanvas::endCommentGroup() { | 330 void SkNWayCanvas::endCommentGroup() { |
| 330 Iter iter(fList); | 331 Iter iter(fList); |
| 331 while (iter.next()) { | 332 while (iter.next()) { |
| 332 iter->endCommentGroup(); | 333 iter->endCommentGroup(); |
| 333 } | 334 } |
| 334 } | 335 } |
| OLD | NEW |