OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkDevice_DEFINED | 8 #ifndef SkDevice_DEFINED |
9 #define SkDevice_DEFINED | 9 #define SkDevice_DEFINED |
10 | 10 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, | 210 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, |
211 int x, int y, const SkPaint& paint) = 0; | 211 int x, int y, const SkPaint& paint) = 0; |
212 | 212 |
213 /** | 213 /** |
214 * The default impl. will create a bitmap-shader from the bitmap, | 214 * The default impl. will create a bitmap-shader from the bitmap, |
215 * and call drawRect with it. | 215 * and call drawRect with it. |
216 */ | 216 */ |
217 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, | 217 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, |
218 const SkRect* srcOrNull, const SkRect& dst, | 218 const SkRect* srcOrNull, const SkRect& dst, |
219 const SkPaint& paint, | 219 const SkPaint& paint, |
220 SK_VIRTUAL_CONSTRAINT_TYPE) = 0; | 220 SkCanvas::SrcRectConstraint) = 0; |
221 virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkIRect& c
enter, | 221 virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkIRect& c
enter, |
222 const SkRect& dst, const SkPaint&); | 222 const SkRect& dst, const SkPaint&); |
223 | 223 |
224 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y
, const SkPaint&); | 224 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y
, const SkPaint&); |
225 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src,
const SkRect& dst, | 225 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src,
const SkRect& dst, |
226 const SkPaint&, SkCanvas::SrcRectConstraint); | 226 const SkPaint&, SkCanvas::SrcRectConstraint); |
227 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen
ter, | 227 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen
ter, |
228 const SkRect& dst, const SkPaint&); | 228 const SkRect& dst, const SkPaint&); |
229 | 229 |
230 /** | 230 /** |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 SkSurfaceProps fSurfaceProps; | 400 SkSurfaceProps fSurfaceProps; |
401 | 401 |
402 #ifdef SK_DEBUG | 402 #ifdef SK_DEBUG |
403 bool fAttachedToCanvas; | 403 bool fAttachedToCanvas; |
404 #endif | 404 #endif |
405 | 405 |
406 typedef SkRefCnt INHERITED; | 406 typedef SkRefCnt INHERITED; |
407 }; | 407 }; |
408 | 408 |
409 #endif | 409 #endif |
OLD | NEW |