OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
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 SkPictureRecord_DEFINED | 8 #ifndef SkPictureRecord_DEFINED |
9 #define SkPictureRecord_DEFINED | 9 #define SkPictureRecord_DEFINED |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 const SkPaint*) SK_OVERRIDE; | 48 const SkPaint*) SK_OVERRIDE; |
49 virtual void drawBitmapRectToRect(const SkBitmap&, const SkRect* src, | 49 virtual void drawBitmapRectToRect(const SkBitmap&, const SkRect* src, |
50 const SkRect& dst, const SkPaint* paint, | 50 const SkRect& dst, const SkPaint* paint, |
51 DrawBitmapRectFlags flags) SK_OVERRIDE; | 51 DrawBitmapRectFlags flags) SK_OVERRIDE; |
52 virtual void drawBitmapMatrix(const SkBitmap&, const SkMatrix&, | 52 virtual void drawBitmapMatrix(const SkBitmap&, const SkMatrix&, |
53 const SkPaint*) SK_OVERRIDE; | 53 const SkPaint*) SK_OVERRIDE; |
54 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 54 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
55 const SkRect& dst, const SkPaint*) SK_OVERRIDE; | 55 const SkRect& dst, const SkPaint*) SK_OVERRIDE; |
56 virtual void drawSprite(const SkBitmap&, int left, int top, | 56 virtual void drawSprite(const SkBitmap&, int left, int top, |
57 const SkPaint*) SK_OVERRIDE; | 57 const SkPaint*) SK_OVERRIDE; |
| 58 virtual void drawText(const void* text, size_t byteLength, SkScalar x, |
| 59 SkScalar y, const SkPaint&) SK_OVERRIDE; |
| 60 virtual void drawPosText(const void* text, size_t byteLength, |
| 61 const SkPoint pos[], const SkPaint&) SK_OVERRIDE; |
| 62 virtual void drawPosTextH(const void* text, size_t byteLength, |
| 63 const SkScalar xpos[], SkScalar constY, const SkPaint&) SK
_OVERRIDE; |
| 64 virtual void drawTextOnPath(const void* text, size_t byteLength, |
| 65 const SkPath& path, const SkMatrix* matrix, |
| 66 const SkPaint&) SK_OVERRIDE; |
58 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; | 67 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; |
59 virtual void drawVertices(VertexMode, int vertexCount, | 68 virtual void drawVertices(VertexMode, int vertexCount, |
60 const SkPoint vertices[], const SkPoint texs[], | 69 const SkPoint vertices[], const SkPoint texs[], |
61 const SkColor colors[], SkXfermode*, | 70 const SkColor colors[], SkXfermode*, |
62 const uint16_t indices[], int indexCount, | 71 const uint16_t indices[], int indexCount, |
63 const SkPaint&) SK_OVERRIDE; | 72 const SkPaint&) SK_OVERRIDE; |
64 virtual void drawData(const void*, size_t) SK_OVERRIDE; | 73 virtual void drawData(const void*, size_t) SK_OVERRIDE; |
65 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 74 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
66 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 75 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
67 virtual void endCommentGroup() SK_OVERRIDE; | 76 virtual void endCommentGroup() SK_OVERRIDE; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 221 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
213 virtual void willRestore() SK_OVERRIDE; | 222 virtual void willRestore() SK_OVERRIDE; |
214 | 223 |
215 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 224 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
216 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 225 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
217 | 226 |
218 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 227 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
219 virtual void onPushCull(const SkRect&) SK_OVERRIDE; | 228 virtual void onPushCull(const SkRect&) SK_OVERRIDE; |
220 virtual void onPopCull() SK_OVERRIDE; | 229 virtual void onPopCull() SK_OVERRIDE; |
221 | 230 |
222 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | |
223 const SkPaint&) SK_OVERRIDE; | |
224 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | |
225 const SkPaint&) SK_OVERRIDE; | |
226 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | |
227 SkScalar constY, const SkPaint&) SK_OVERRIDE; | |
228 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | |
229 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | |
230 | |
231 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 231 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
232 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 232 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
233 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 233 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
234 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 234 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
235 | 235 |
236 // Return fontmetrics.fTop,fBottom in topbot[0,1], after they have been | 236 // Return fontmetrics.fTop,fBottom in topbot[0,1], after they have been |
237 // tweaked by paint.computeFastBounds(). | 237 // tweaked by paint.computeFastBounds(). |
238 static void ComputeFontMetricsTopBottom(const SkPaint& paint, SkScalar topbo
t[2]); | 238 static void ComputeFontMetricsTopBottom(const SkPaint& paint, SkScalar topbo
t[2]); |
239 | 239 |
240 // Make sure that flat has fTopBot written. | 240 // Make sure that flat has fTopBot written. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 friend class SkPictureTester; // for unit testing | 300 friend class SkPictureTester; // for unit testing |
301 | 301 |
302 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE | 302 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE |
303 SkMatrixClipStateMgr fMCMgr; | 303 SkMatrixClipStateMgr fMCMgr; |
304 #endif | 304 #endif |
305 | 305 |
306 typedef SkCanvas INHERITED; | 306 typedef SkCanvas INHERITED; |
307 }; | 307 }; |
308 | 308 |
309 #endif | 309 #endif |
OLD | NEW |