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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 } | 226 } |
227 | 227 |
228 void SkNWayCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, | 228 void SkNWayCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, |
229 const SkPaint* paint) { | 229 const SkPaint* paint) { |
230 Iter iter(fList); | 230 Iter iter(fList); |
231 while (iter.next()) { | 231 while (iter.next()) { |
232 iter->drawSprite(bitmap, x, y, paint); | 232 iter->drawSprite(bitmap, x, y, paint); |
233 } | 233 } |
234 } | 234 } |
235 | 235 |
236 void SkNWayCanvas::drawText(const void* text, size_t byteLength, SkScalar x, | 236 void SkNWayCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, S
kScalar y, |
237 SkScalar y, const SkPaint& paint) { | 237 const SkPaint& paint) { |
238 Iter iter(fList); | 238 Iter iter(fList); |
239 while (iter.next()) { | 239 while (iter.next()) { |
240 iter->drawText(text, byteLength, x, y, paint); | 240 iter->drawText(text, byteLength, x, y, paint); |
241 } | 241 } |
242 } | 242 } |
243 | 243 |
244 void SkNWayCanvas::drawPosText(const void* text, size_t byteLength, | 244 void SkNWayCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPo
int pos[], |
245 const SkPoint pos[], const SkPaint& paint) { | 245 const SkPaint& paint) { |
246 Iter iter(fList); | 246 Iter iter(fList); |
247 while (iter.next()) { | 247 while (iter.next()) { |
248 iter->drawPosText(text, byteLength, pos, paint); | 248 iter->drawPosText(text, byteLength, pos, paint); |
249 } | 249 } |
250 } | 250 } |
251 | 251 |
252 void SkNWayCanvas::drawPosTextH(const void* text, size_t byteLength, | 252 void SkNWayCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkS
calar xpos[], |
253 const SkScalar xpos[], SkScalar constY, | 253 SkScalar constY, const SkPaint& paint) { |
254 const SkPaint& paint) { | |
255 Iter iter(fList); | 254 Iter iter(fList); |
256 while (iter.next()) { | 255 while (iter.next()) { |
257 iter->drawPosTextH(text, byteLength, xpos, constY, paint); | 256 iter->drawPosTextH(text, byteLength, xpos, constY, paint); |
258 } | 257 } |
259 } | 258 } |
260 | 259 |
261 void SkNWayCanvas::drawTextOnPath(const void* text, size_t byteLength, | 260 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S
kPath& path, |
262 const SkPath& path, const SkMatrix* matrix, | 261 const SkMatrix* matrix, const SkPaint& paint
) { |
263 const SkPaint& paint) { | |
264 Iter iter(fList); | 262 Iter iter(fList); |
265 while (iter.next()) { | 263 while (iter.next()) { |
266 iter->drawTextOnPath(text, byteLength, path, matrix, paint); | 264 iter->drawTextOnPath(text, byteLength, path, matrix, paint); |
267 } | 265 } |
268 } | 266 } |
269 | 267 |
270 void SkNWayCanvas::drawPicture(SkPicture& picture) { | 268 void SkNWayCanvas::drawPicture(SkPicture& picture) { |
271 Iter iter(fList); | 269 Iter iter(fList); |
272 while (iter.next()) { | 270 while (iter.next()) { |
273 iter->drawPicture(picture); | 271 iter->drawPicture(picture); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 iter->addComment(kywd, value); | 320 iter->addComment(kywd, value); |
323 } | 321 } |
324 } | 322 } |
325 | 323 |
326 void SkNWayCanvas::endCommentGroup() { | 324 void SkNWayCanvas::endCommentGroup() { |
327 Iter iter(fList); | 325 Iter iter(fList); |
328 while (iter.next()) { | 326 while (iter.next()) { |
329 iter->endCommentGroup(); | 327 iter->endCommentGroup(); |
330 } | 328 } |
331 } | 329 } |
OLD | NEW |