| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // default implementation calls drawVertices | 229 // default implementation calls drawVertices |
| 230 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo
r colors[4], | 230 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo
r colors[4], |
| 231 const SkPoint texCoords[4], SkXfermode* xmode, const
SkPaint& paint); | 231 const SkPoint texCoords[4], SkXfermode* xmode, const
SkPaint& paint); |
| 232 /** The SkDevice passed will be an SkDevice which was returned by a call to | 232 /** The SkDevice passed will be an SkDevice which was returned by a call to |
| 233 onCreateCompatibleDevice on this device with kSaveLayer_Usage. | 233 onCreateCompatibleDevice on this device with kSaveLayer_Usage. |
| 234 */ | 234 */ |
| 235 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 235 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
| 236 const SkPaint&) = 0; | 236 const SkPaint&) = 0; |
| 237 | 237 |
| 238 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, | 238 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, |
| 239 const SkMatrix*, const SkPaint&); | 239 const SkMatrix*, SK_SUPPORT_LEGACY_DRAWTEXTONPAT
H_PARAM |
| 240 const SkPaint&); |
| 240 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); | 241 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); |
| 241 | 242 |
| 242 /////////////////////////////////////////////////////////////////////////// | 243 /////////////////////////////////////////////////////////////////////////// |
| 243 | 244 |
| 244 /** Update as needed the pixel value in the bitmap, so that the caller can | 245 /** Update as needed the pixel value in the bitmap, so that the caller can |
| 245 access the pixels directly. | 246 access the pixels directly. |
| 246 @return The device contents as a bitmap | 247 @return The device contents as a bitmap |
| 247 */ | 248 */ |
| 248 virtual const SkBitmap& onAccessBitmap() = 0; | 249 virtual const SkBitmap& onAccessBitmap() = 0; |
| 249 | 250 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 SkDeviceProperties* fLeakyProperties; // will always exist. | 390 SkDeviceProperties* fLeakyProperties; // will always exist. |
| 390 | 391 |
| 391 #ifdef SK_DEBUG | 392 #ifdef SK_DEBUG |
| 392 bool fAttachedToCanvas; | 393 bool fAttachedToCanvas; |
| 393 #endif | 394 #endif |
| 394 | 395 |
| 395 typedef SkRefCnt INHERITED; | 396 typedef SkRefCnt INHERITED; |
| 396 }; | 397 }; |
| 397 | 398 |
| 398 #endif | 399 #endif |
| OLD | NEW |