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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 223 |
224 /** | 224 /** |
225 * The default impl. will create a bitmap-shader from the bitmap, | 225 * The default impl. will create a bitmap-shader from the bitmap, |
226 * and call drawRect with it. | 226 * and call drawRect with it. |
227 */ | 227 */ |
228 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, | 228 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, |
229 const SkRect* srcOrNull, const SkRect& dst, | 229 const SkRect* srcOrNull, const SkRect& dst, |
230 const SkPaint& paint, | 230 const SkPaint& paint, |
231 SkCanvas::SrcRectConstraint) = 0; | 231 SkCanvas::SrcRectConstraint) = 0; |
232 virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkIRect& c
enter, | 232 virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkIRect& c
enter, |
233 const SkRect& dst, const SkPaint&); | 233 const SkRect& dst, const SkPaint&); |
| 234 virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkCanvas::
NinePatchDivs& divs, |
| 235 const SkRect& dst, const SkPaint&); |
234 | 236 |
235 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y
, const SkPaint&); | 237 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y
, const SkPaint&); |
236 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src,
const SkRect& dst, | 238 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src,
const SkRect& dst, |
237 const SkPaint&, SkCanvas::SrcRectConstraint); | 239 const SkPaint&, SkCanvas::SrcRectConstraint); |
238 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen
ter, | 240 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen
ter, |
239 const SkRect& dst, const SkPaint&); | 241 const SkRect& dst, const SkPaint&); |
240 | 242 |
241 /** | 243 /** |
242 * Does not handle text decoration. | 244 * Does not handle text decoration. |
243 * Decorations (underline and stike-thru) will be handled by SkCanvas. | 245 * Decorations (underline and stike-thru) will be handled by SkCanvas. |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 SkSurfaceProps fSurfaceProps; | 409 SkSurfaceProps fSurfaceProps; |
408 | 410 |
409 #ifdef SK_DEBUG | 411 #ifdef SK_DEBUG |
410 bool fAttachedToCanvas; | 412 bool fAttachedToCanvas; |
411 #endif | 413 #endif |
412 | 414 |
413 typedef SkRefCnt INHERITED; | 415 typedef SkRefCnt INHERITED; |
414 }; | 416 }; |
415 | 417 |
416 #endif | 418 #endif |
OLD | NEW |