| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 * If prePathMatrix is not null, it should logically be applied before any | 270 * If prePathMatrix is not null, it should logically be applied before any |
| 271 * stroking or other effects. If there are no effects on the paint that | 271 * stroking or other effects. If there are no effects on the paint that |
| 272 * affect the geometry/rasterization, then the pre matrix can just be | 272 * affect the geometry/rasterization, then the pre matrix can just be |
| 273 * pre-concated with the current matrix. | 273 * pre-concated with the current matrix. |
| 274 */ | 274 */ |
| 275 virtual void drawPath(const SkDraw&, const SkPath& path, | 275 virtual void drawPath(const SkDraw&, const SkPath& path, |
| 276 const SkPaint& paint, | 276 const SkPaint& paint, |
| 277 const SkMatrix* prePathMatrix = NULL, | 277 const SkMatrix* prePathMatrix = NULL, |
| 278 bool pathIsMutable = false); | 278 bool pathIsMutable = false); |
| 279 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, | 279 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, |
| 280 const SkIRect* srcRectOrNull, | |
| 281 const SkMatrix& matrix, const SkPaint& paint); | 280 const SkMatrix& matrix, const SkPaint& paint); |
| 282 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, | 281 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, |
| 283 int x, int y, const SkPaint& paint); | 282 int x, int y, const SkPaint& paint); |
| 284 | 283 |
| 285 /** | 284 /** |
| 286 * The default impl. will create a bitmap-shader from the bitmap, | 285 * The default impl. will create a bitmap-shader from the bitmap, |
| 287 * and call drawRect with it. | 286 * and call drawRect with it. |
| 288 */ | 287 */ |
| 289 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, | 288 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, |
| 290 const SkRect* srcOrNull, const SkRect& dst, | 289 const SkRect* srcOrNull, const SkRect& dst, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 SkDeviceProperties fLeakyProperties; | 459 SkDeviceProperties fLeakyProperties; |
| 461 | 460 |
| 462 #ifdef SK_DEBUG | 461 #ifdef SK_DEBUG |
| 463 bool fAttachedToCanvas; | 462 bool fAttachedToCanvas; |
| 464 #endif | 463 #endif |
| 465 | 464 |
| 466 typedef SkRefCnt INHERITED; | 465 typedef SkRefCnt INHERITED; |
| 467 }; | 466 }; |
| 468 | 467 |
| 469 #endif | 468 #endif |
| OLD | NEW |