| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 The Android Open Source Project |
| 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 | 8 |
| 9 | 9 |
| 10 #ifndef SkDevice_DEFINED | 10 #ifndef SkDevice_DEFINED |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 const SkMatrix& matrix, const SkPaint& paint); | 280 const SkMatrix& matrix, const SkPaint& paint); |
| 281 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, | 281 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, |
| 282 int x, int y, const SkPaint& paint); | 282 int x, int y, const SkPaint& paint); |
| 283 | 283 |
| 284 /** | 284 /** |
| 285 * The default impl. will create a bitmap-shader from the bitmap, | 285 * The default impl. will create a bitmap-shader from the bitmap, |
| 286 * and call drawRect with it. | 286 * and call drawRect with it. |
| 287 */ | 287 */ |
| 288 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, | 288 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, |
| 289 const SkRect* srcOrNull, const SkRect& dst, | 289 const SkRect* srcOrNull, const SkRect& dst, |
| 290 const SkPaint& paint); | 290 const SkPaint& paint, |
| 291 SkCanvas::DrawBitmapRectFlags flags); |
| 291 | 292 |
| 292 /** | 293 /** |
| 293 * Does not handle text decoration. | 294 * Does not handle text decoration. |
| 294 * Decorations (underline and stike-thru) will be handled by SkCanvas. | 295 * Decorations (underline and stike-thru) will be handled by SkCanvas. |
| 295 */ | 296 */ |
| 296 virtual void drawText(const SkDraw&, const void* text, size_t len, | 297 virtual void drawText(const SkDraw&, const void* text, size_t len, |
| 297 SkScalar x, SkScalar y, const SkPaint& paint); | 298 SkScalar x, SkScalar y, const SkPaint& paint); |
| 298 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 299 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
| 299 const SkScalar pos[], SkScalar constY, | 300 const SkScalar pos[], SkScalar constY, |
| 300 int scalarsPerPos, const SkPaint& paint); | 301 int scalarsPerPos, const SkPaint& paint); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 SkDeviceProperties fLeakyProperties; | 460 SkDeviceProperties fLeakyProperties; |
| 460 | 461 |
| 461 #ifdef SK_DEBUG | 462 #ifdef SK_DEBUG |
| 462 bool fAttachedToCanvas; | 463 bool fAttachedToCanvas; |
| 463 #endif | 464 #endif |
| 464 | 465 |
| 465 typedef SkRefCnt INHERITED; | 466 typedef SkRefCnt INHERITED; |
| 466 }; | 467 }; |
| 467 | 468 |
| 468 #endif | 469 #endif |
| OLD | NEW |