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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 virtual void drawAnnotation(const SkDraw&, const SkRect&, const char[], SkDa
ta*) {} | 266 virtual void drawAnnotation(const SkDraw&, const SkRect&, const char[], SkDa
ta*) {} |
267 | 267 |
268 /** The SkDevice passed will be an SkDevice which was returned by a call to | 268 /** The SkDevice passed will be an SkDevice which was returned by a call to |
269 onCreateDevice on this device with kNeverTile_TileExpectation. | 269 onCreateDevice on this device with kNeverTile_TileExpectation. |
270 */ | 270 */ |
271 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 271 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
272 const SkPaint&) = 0; | 272 const SkPaint&) = 0; |
273 | 273 |
274 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, | 274 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, |
275 const SkMatrix*, const SkPaint&); | 275 const SkMatrix*, const SkPaint&); |
| 276 virtual void drawTextRSXform(const SkDraw&, const void* text, size_t len, co
nst SkRSXform[], |
| 277 const SkPaint&); |
276 | 278 |
277 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); | 279 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); |
278 | 280 |
279 /////////////////////////////////////////////////////////////////////////// | 281 /////////////////////////////////////////////////////////////////////////// |
280 | 282 |
281 /** Update as needed the pixel value in the bitmap, so that the caller can | 283 /** Update as needed the pixel value in the bitmap, so that the caller can |
282 access the pixels directly. | 284 access the pixels directly. |
283 @return The device contents as a bitmap | 285 @return The device contents as a bitmap |
284 */ | 286 */ |
285 virtual const SkBitmap& onAccessBitmap() = 0; | 287 virtual const SkBitmap& onAccessBitmap() = 0; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 SkSurfaceProps fSurfaceProps; | 407 SkSurfaceProps fSurfaceProps; |
406 | 408 |
407 #ifdef SK_DEBUG | 409 #ifdef SK_DEBUG |
408 bool fAttachedToCanvas; | 410 bool fAttachedToCanvas; |
409 #endif | 411 #endif |
410 | 412 |
411 typedef SkRefCnt INHERITED; | 413 typedef SkRefCnt INHERITED; |
412 }; | 414 }; |
413 | 415 |
414 #endif | 416 #endif |
OLD | NEW |