| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 const SkPoint verts[], const SkPoint texs[], | 238 const SkPoint verts[], const SkPoint texs[], |
| 239 const SkColor colors[], SkXfermode* xmode, | 239 const SkColor colors[], SkXfermode* xmode, |
| 240 const uint16_t indices[], int indexCount, | 240 const uint16_t indices[], int indexCount, |
| 241 const SkPaint& paint) = 0; | 241 const SkPaint& paint) = 0; |
| 242 // default implementation unrolls the blob runs. | 242 // default implementation unrolls the blob runs. |
| 243 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, | 243 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, |
| 244 const SkPaint& paint, SkDrawFilter* drawFilter); | 244 const SkPaint& paint, SkDrawFilter* drawFilter); |
| 245 // default implementation calls drawVertices | 245 // default implementation calls drawVertices |
| 246 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo
r colors[4], | 246 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo
r colors[4], |
| 247 const SkPoint texCoords[4], SkXfermode* xmode, const
SkPaint& paint); | 247 const SkPoint texCoords[4], SkXfermode* xmode, const
SkPaint& paint); |
| 248 |
| 249 // default implementation calls drawPath |
| 250 virtual void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[
], const SkRect[], |
| 251 const SkColor[], int count, SkXfermode::Mode, const S
kPaint&); |
| 252 |
| 248 /** The SkDevice passed will be an SkDevice which was returned by a call to | 253 /** The SkDevice passed will be an SkDevice which was returned by a call to |
| 249 onCreateDevice on this device with kNeverTile_TileExpectation. | 254 onCreateDevice on this device with kNeverTile_TileExpectation. |
| 250 */ | 255 */ |
| 251 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 256 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
| 252 const SkPaint&) = 0; | 257 const SkPaint&) = 0; |
| 253 | 258 |
| 254 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, | 259 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, |
| 255 const SkMatrix*, const SkPaint&); | 260 const SkMatrix*, const SkPaint&); |
| 256 | 261 |
| 257 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); | 262 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 SkSurfaceProps fSurfaceProps; | 398 SkSurfaceProps fSurfaceProps; |
| 394 | 399 |
| 395 #ifdef SK_DEBUG | 400 #ifdef SK_DEBUG |
| 396 bool fAttachedToCanvas; | 401 bool fAttachedToCanvas; |
| 397 #endif | 402 #endif |
| 398 | 403 |
| 399 typedef SkRefCnt INHERITED; | 404 typedef SkRefCnt INHERITED; |
| 400 }; | 405 }; |
| 401 | 406 |
| 402 #endif | 407 #endif |
| OLD | NEW |