| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 int x, int y, const SkPaint& paint) = 0; | 213 int x, int y, const SkPaint& paint) = 0; |
| 214 | 214 |
| 215 /** | 215 /** |
| 216 * The default impl. will create a bitmap-shader from the bitmap, | 216 * The default impl. will create a bitmap-shader from the bitmap, |
| 217 * and call drawRect with it. | 217 * and call drawRect with it. |
| 218 */ | 218 */ |
| 219 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, | 219 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, |
| 220 const SkRect* srcOrNull, const SkRect& dst, | 220 const SkRect* srcOrNull, const SkRect& dst, |
| 221 const SkPaint& paint, | 221 const SkPaint& paint, |
| 222 SkCanvas::DrawBitmapRectFlags flags) = 0; | 222 SkCanvas::DrawBitmapRectFlags flags) = 0; |
| 223 virtual void drawBitmapNine(const SkDraw&, const SkBitmap&, const SkIRect& c
enter, |
| 224 const SkRect& dst, const SkPaint&); |
| 223 | 225 |
| 224 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y
, const SkPaint&); | 226 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, | 227 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src,
const SkRect& dst, |
| 226 const SkPaint&); | 228 const SkPaint&); |
| 229 virtual void drawImageNine(const SkDraw&, const SkImage*, const SkIRect& cen
ter, |
| 230 const SkRect& dst, const SkPaint&); |
| 227 | 231 |
| 228 /** | 232 /** |
| 229 * Does not handle text decoration. | 233 * Does not handle text decoration. |
| 230 * Decorations (underline and stike-thru) will be handled by SkCanvas. | 234 * Decorations (underline and stike-thru) will be handled by SkCanvas. |
| 231 */ | 235 */ |
| 232 virtual void drawText(const SkDraw&, const void* text, size_t len, | 236 virtual void drawText(const SkDraw&, const void* text, size_t len, |
| 233 SkScalar x, SkScalar y, const SkPaint& paint) = 0; | 237 SkScalar x, SkScalar y, const SkPaint& paint) = 0; |
| 234 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 238 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
| 235 const SkScalar pos[], int scalarsPerPos, | 239 const SkScalar pos[], int scalarsPerPos, |
| 236 const SkPoint& offset, const SkPaint& paint) = 0; | 240 const SkPoint& offset, const SkPaint& paint) = 0; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 SkSurfaceProps fSurfaceProps; | 402 SkSurfaceProps fSurfaceProps; |
| 399 | 403 |
| 400 #ifdef SK_DEBUG | 404 #ifdef SK_DEBUG |
| 401 bool fAttachedToCanvas; | 405 bool fAttachedToCanvas; |
| 402 #endif | 406 #endif |
| 403 | 407 |
| 404 typedef SkRefCnt INHERITED; | 408 typedef SkRefCnt INHERITED; |
| 405 }; | 409 }; |
| 406 | 410 |
| 407 #endif | 411 #endif |
| OLD | NEW |