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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 void SkNWayCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* sr
c, | 196 void SkNWayCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* sr
c, |
197 const SkRect& dst, const SkPaint* paint, | 197 const SkRect& dst, const SkPaint* paint, |
198 DrawBitmapRectFlags flags) { | 198 DrawBitmapRectFlags flags) { |
199 Iter iter(fList); | 199 Iter iter(fList); |
200 while (iter.next()) { | 200 while (iter.next()) { |
201 iter->drawBitmapRectToRect(bitmap, src, dst, paint, flags); | 201 iter->drawBitmapRectToRect(bitmap, src, dst, paint, flags); |
202 } | 202 } |
203 } | 203 } |
204 | 204 |
205 void SkNWayCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | |
206 const SkPaint* paint) { | |
207 Iter iter(fList); | |
208 while (iter.next()) { | |
209 iter->drawBitmapMatrix(bitmap, m, paint); | |
210 } | |
211 } | |
212 | |
213 void SkNWayCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 205 void SkNWayCanvas::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
214 const SkRect& dst, const SkPaint* paint) { | 206 const SkRect& dst, const SkPaint* paint) { |
215 Iter iter(fList); | 207 Iter iter(fList); |
216 while (iter.next()) { | 208 while (iter.next()) { |
217 iter->drawBitmapNine(bitmap, center, dst, paint); | 209 iter->drawBitmapNine(bitmap, center, dst, paint); |
218 } | 210 } |
219 } | 211 } |
220 | 212 |
221 void SkNWayCanvas::drawImage(const SkImage* image, SkScalar left, SkScalar top, | 213 void SkNWayCanvas::drawImage(const SkImage* image, SkScalar left, SkScalar top, |
222 const SkPaint* paint) { | 214 const SkPaint* paint) { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 iter->addComment(kywd, value); | 332 iter->addComment(kywd, value); |
341 } | 333 } |
342 } | 334 } |
343 | 335 |
344 void SkNWayCanvas::endCommentGroup() { | 336 void SkNWayCanvas::endCommentGroup() { |
345 Iter iter(fList); | 337 Iter iter(fList); |
346 while (iter.next()) { | 338 while (iter.next()) { |
347 iter->endCommentGroup(); | 339 iter->endCommentGroup(); |
348 } | 340 } |
349 } | 341 } |
OLD | NEW |