| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 /** | 203 /** |
| 204 * The default impl. will create a bitmap-shader from the bitmap, | 204 * The default impl. will create a bitmap-shader from the bitmap, |
| 205 * and call drawRect with it. | 205 * and call drawRect with it. |
| 206 */ | 206 */ |
| 207 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, | 207 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, |
| 208 const SkRect* srcOrNull, const SkRect& dst, | 208 const SkRect* srcOrNull, const SkRect& dst, |
| 209 const SkPaint& paint, | 209 const SkPaint& paint, |
| 210 SkCanvas::DrawBitmapRectFlags flags) = 0; | 210 SkCanvas::DrawBitmapRectFlags flags) = 0; |
| 211 | 211 |
| 212 virtual void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y
, const SkPaint&); | |
| 213 virtual void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src,
const SkRect& dst, | |
| 214 const SkPaint&); | |
| 215 | |
| 216 /** | 212 /** |
| 217 * Does not handle text decoration. | 213 * Does not handle text decoration. |
| 218 * Decorations (underline and stike-thru) will be handled by SkCanvas. | 214 * Decorations (underline and stike-thru) will be handled by SkCanvas. |
| 219 */ | 215 */ |
| 220 virtual void drawText(const SkDraw&, const void* text, size_t len, | 216 virtual void drawText(const SkDraw&, const void* text, size_t len, |
| 221 SkScalar x, SkScalar y, const SkPaint& paint) = 0; | 217 SkScalar x, SkScalar y, const SkPaint& paint) = 0; |
| 222 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 218 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
| 223 const SkScalar pos[], int scalarsPerPos, | 219 const SkScalar pos[], int scalarsPerPos, |
| 224 const SkPoint& offset, const SkPaint& paint) = 0; | 220 const SkPoint& offset, const SkPaint& paint) = 0; |
| 225 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, | 221 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 SkDeviceProperties* fLeakyProperties; // will always exist. | 396 SkDeviceProperties* fLeakyProperties; // will always exist. |
| 401 | 397 |
| 402 #ifdef SK_DEBUG | 398 #ifdef SK_DEBUG |
| 403 bool fAttachedToCanvas; | 399 bool fAttachedToCanvas; |
| 404 #endif | 400 #endif |
| 405 | 401 |
| 406 typedef SkRefCnt INHERITED; | 402 typedef SkRefCnt INHERITED; |
| 407 }; | 403 }; |
| 408 | 404 |
| 409 #endif | 405 #endif |
| OLD | NEW |