| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 const SkScalar pos[], SkScalar constY, | 235 const SkScalar pos[], SkScalar constY, |
| 236 int scalarsPerPos, const SkPaint& paint) = 0; | 236 int scalarsPerPos, const SkPaint& paint) = 0; |
| 237 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, | 237 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, |
| 238 const SkPath& path, const SkMatrix* matrix, | 238 const SkPath& path, const SkMatrix* matrix, |
| 239 const SkPaint& paint) = 0; | 239 const SkPaint& paint) = 0; |
| 240 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, | 240 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, |
| 241 const SkPoint verts[], const SkPoint texs[], | 241 const SkPoint verts[], const SkPoint texs[], |
| 242 const SkColor colors[], SkXfermode* xmode, | 242 const SkColor colors[], SkXfermode* xmode, |
| 243 const uint16_t indices[], int indexCount, | 243 const uint16_t indices[], int indexCount, |
| 244 const SkPaint& paint) = 0; | 244 const SkPaint& paint) = 0; |
| 245 virtual void drawPatch(const SkDraw&, const SkPatch& patch, const SkPaint& p
aint) = 0; |
| 245 /** The SkDevice passed will be an SkDevice which was returned by a call to | 246 /** The SkDevice passed will be an SkDevice which was returned by a call to |
| 246 onCreateDevice on this device with kSaveLayer_Usage. | 247 onCreateDevice on this device with kSaveLayer_Usage. |
| 247 */ | 248 */ |
| 248 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 249 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
| 249 const SkPaint&) = 0; | 250 const SkPaint&) = 0; |
| 250 | 251 |
| 251 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); | 252 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); |
| 252 | 253 |
| 253 /////////////////////////////////////////////////////////////////////////// | 254 /////////////////////////////////////////////////////////////////////////// |
| 254 | 255 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 SkMetaData* fMetaData; | 383 SkMetaData* fMetaData; |
| 383 | 384 |
| 384 #ifdef SK_DEBUG | 385 #ifdef SK_DEBUG |
| 385 bool fAttachedToCanvas; | 386 bool fAttachedToCanvas; |
| 386 #endif | 387 #endif |
| 387 | 388 |
| 388 typedef SkRefCnt INHERITED; | 389 typedef SkRefCnt INHERITED; |
| 389 }; | 390 }; |
| 390 | 391 |
| 391 #endif | 392 #endif |
| OLD | NEW |