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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, | 245 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, |
246 const SkPaint& paint, SkDrawFilter* drawFilter); | 246 const SkPaint& paint, SkDrawFilter* drawFilter); |
247 // default implementation calls drawVertices | 247 // default implementation calls drawVertices |
248 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo
r colors[4], | 248 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo
r colors[4], |
249 const SkPoint texCoords[4], SkXfermode* xmode, const
SkPaint& paint); | 249 const SkPoint texCoords[4], SkXfermode* xmode, const
SkPaint& paint); |
250 | 250 |
251 // default implementation calls drawPath | 251 // default implementation calls drawPath |
252 virtual void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[
], const SkRect[], | 252 virtual void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[
], const SkRect[], |
253 const SkColor[], int count, SkXfermode::Mode, const S
kPaint&); | 253 const SkColor[], int count, SkXfermode::Mode, const S
kPaint&); |
254 | 254 |
| 255 virtual void drawAnnotation(const SkDraw&, const SkRect&, const char[], SkDa
ta*) {} |
| 256 |
255 /** The SkDevice passed will be an SkDevice which was returned by a call to | 257 /** The SkDevice passed will be an SkDevice which was returned by a call to |
256 onCreateDevice on this device with kNeverTile_TileExpectation. | 258 onCreateDevice on this device with kNeverTile_TileExpectation. |
257 */ | 259 */ |
258 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 260 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
259 const SkPaint&) = 0; | 261 const SkPaint&) = 0; |
260 | 262 |
261 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, | 263 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, |
262 const SkMatrix*, const SkPaint&); | 264 const SkMatrix*, const SkPaint&); |
263 | 265 |
264 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); | 266 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 SkSurfaceProps fSurfaceProps; | 415 SkSurfaceProps fSurfaceProps; |
414 | 416 |
415 #ifdef SK_DEBUG | 417 #ifdef SK_DEBUG |
416 bool fAttachedToCanvas; | 418 bool fAttachedToCanvas; |
417 #endif | 419 #endif |
418 | 420 |
419 typedef SkRefCnt INHERITED; | 421 typedef SkRefCnt INHERITED; |
420 }; | 422 }; |
421 | 423 |
422 #endif | 424 #endif |
OLD | NEW |