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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 272 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
273 const SkPaint&) = 0; | 273 const SkPaint&) = 0; |
274 | 274 |
275 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, | 275 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, |
276 const SkMatrix*, const SkPaint&); | 276 const SkMatrix*, const SkPaint&); |
277 virtual void drawTextRSXform(const SkDraw&, const void* text, size_t len, co
nst SkRSXform[], | 277 virtual void drawTextRSXform(const SkDraw&, const void* text, size_t len, co
nst SkRSXform[], |
278 const SkPaint&); | 278 const SkPaint&); |
279 | 279 |
280 virtual void drawSpecial(const SkDraw&, SkSpecialImage*, int x, int y, const
SkPaint&); | 280 virtual void drawSpecial(const SkDraw&, SkSpecialImage*, int x, int y, const
SkPaint&); |
281 virtual sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&); | 281 virtual sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&); |
282 virtual sk_sp<SkSpecialImage> makeSpecial(SkImage*); | 282 virtual sk_sp<SkSpecialImage> makeSpecial(const SkImage*); |
283 virtual sk_sp<SkSpecialImage> snapSpecial(); | 283 virtual sk_sp<SkSpecialImage> snapSpecial(); |
284 | 284 |
285 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); | 285 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); |
286 | 286 |
287 /////////////////////////////////////////////////////////////////////////// | 287 /////////////////////////////////////////////////////////////////////////// |
288 | 288 |
289 /** Update as needed the pixel value in the bitmap, so that the caller can | 289 /** Update as needed the pixel value in the bitmap, so that the caller can |
290 access the pixels directly. | 290 access the pixels directly. |
291 @return The device contents as a bitmap | 291 @return The device contents as a bitmap |
292 */ | 292 */ |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 SkSurfaceProps fSurfaceProps; | 399 SkSurfaceProps fSurfaceProps; |
400 | 400 |
401 #ifdef SK_DEBUG | 401 #ifdef SK_DEBUG |
402 bool fAttachedToCanvas; | 402 bool fAttachedToCanvas; |
403 #endif | 403 #endif |
404 | 404 |
405 typedef SkRefCnt INHERITED; | 405 typedef SkRefCnt INHERITED; |
406 }; | 406 }; |
407 | 407 |
408 #endif | 408 #endif |
OLD | NEW |