OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 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 | 8 |
9 #ifndef SkBitmapDevice_DEFINED | 9 #ifndef SkBitmapDevice_DEFINED |
10 #define SkBitmapDevice_DEFINED | 10 #define SkBitmapDevice_DEFINED |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 * pre-concated with the current matrix. | 69 * pre-concated with the current matrix. |
70 */ | 70 */ |
71 virtual void drawPath(const SkDraw&, const SkPath& path, | 71 virtual void drawPath(const SkDraw&, const SkPath& path, |
72 const SkPaint& paint, | 72 const SkPaint& paint, |
73 const SkMatrix* prePathMatrix = NULL, | 73 const SkMatrix* prePathMatrix = NULL, |
74 bool pathIsMutable = false) SK_OVERRIDE; | 74 bool pathIsMutable = false) SK_OVERRIDE; |
75 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, | 75 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, |
76 const SkMatrix& matrix, const SkPaint& paint) SK_OVE
RRIDE; | 76 const SkMatrix& matrix, const SkPaint& paint) SK_OVE
RRIDE; |
77 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, | 77 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, |
78 int x, int y, const SkPaint& paint) SK_OVERRIDE; | 78 int x, int y, const SkPaint& paint) SK_OVERRIDE; |
| 79 virtual void drawSprite(const SkDraw&, const SkImage& image, |
| 80 int x, int y, const SkPaint& paint) SK_OVERRIDE; |
79 | 81 |
80 /** | 82 /** |
81 * The default impl. will create a bitmap-shader from the bitmap, | 83 * The default impl. will create a bitmap-shader from the bitmap, |
82 * and call drawRect with it. | 84 * and call drawRect with it. |
83 */ | 85 */ |
84 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, | 86 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, |
85 const SkRect* srcOrNull, const SkRect& dst, | 87 const SkRect* srcOrNull, const SkRect& dst, |
86 const SkPaint& paint, | 88 const SkPaint& paint, |
87 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE
; | 89 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE
; |
88 | 90 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; | 157 const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; |
156 | 158 |
157 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; | 159 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; |
158 | 160 |
159 SkBitmap fBitmap; | 161 SkBitmap fBitmap; |
160 SkAutoTUnref<SkImage> fSnapshot; | 162 SkAutoTUnref<SkImage> fSnapshot; |
161 typedef SkBaseDevice INHERITED; | 163 typedef SkBaseDevice INHERITED; |
162 }; | 164 }; |
163 | 165 |
164 #endif // SkBitmapDevice_DEFINED | 166 #endif // SkBitmapDevice_DEFINED |
OLD | NEW |