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 | |
257 /** The SkDevice passed will be an SkDevice which was returned by a call to | 255 /** The SkDevice passed will be an SkDevice which was returned by a call to |
258 onCreateDevice on this device with kNeverTile_TileExpectation. | 256 onCreateDevice on this device with kNeverTile_TileExpectation. |
259 */ | 257 */ |
260 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 258 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
261 const SkPaint&) = 0; | 259 const SkPaint&) = 0; |
262 | 260 |
263 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, | 261 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con
st SkPath&, |
264 const SkMatrix*, const SkPaint&); | 262 const SkMatrix*, const SkPaint&); |
265 | 263 |
266 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y
); | 264 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... |
415 SkSurfaceProps fSurfaceProps; | 413 SkSurfaceProps fSurfaceProps; |
416 | 414 |
417 #ifdef SK_DEBUG | 415 #ifdef SK_DEBUG |
418 bool fAttachedToCanvas; | 416 bool fAttachedToCanvas; |
419 #endif | 417 #endif |
420 | 418 |
421 typedef SkRefCnt INHERITED; | 419 typedef SkRefCnt INHERITED; |
422 }; | 420 }; |
423 | 421 |
424 #endif | 422 #endif |
OLD | NEW |