OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 SkRecorder_DEFINED | 8 #ifndef SkRecorder_DEFINED |
9 #define SkRecorder_DEFINED | 9 #define SkRecorder_DEFINED |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 const SkPaint* paint = NULL) SK_OVERRIDE; | 54 const SkPaint* paint = NULL) SK_OVERRIDE; |
55 void drawVertices(VertexMode vmode, | 55 void drawVertices(VertexMode vmode, |
56 int vertexCount, | 56 int vertexCount, |
57 const SkPoint vertices[], | 57 const SkPoint vertices[], |
58 const SkPoint texs[], | 58 const SkPoint texs[], |
59 const SkColor colors[], | 59 const SkColor colors[], |
60 SkXfermode* xmode, | 60 SkXfermode* xmode, |
61 const uint16_t indices[], | 61 const uint16_t indices[], |
62 int indexCount, | 62 int indexCount, |
63 const SkPaint& paint) SK_OVERRIDE; | 63 const SkPaint& paint) SK_OVERRIDE; |
64 void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRIDE; | |
65 | 64 |
66 void willSave() SK_OVERRIDE; | 65 void willSave() SK_OVERRIDE; |
67 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SkCanvas::Sav
eFlags) SK_OVERRIDE; | 66 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SkCanvas::Sav
eFlags) SK_OVERRIDE; |
68 void willRestore() SK_OVERRIDE; | 67 void willRestore() SK_OVERRIDE; |
69 | 68 |
70 void didConcat(const SkMatrix&) SK_OVERRIDE; | 69 void didConcat(const SkMatrix&) SK_OVERRIDE; |
71 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 70 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
72 | 71 |
73 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID
E; | 72 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID
E; |
74 void onDrawText(const void* text, | 73 void onDrawText(const void* text, |
75 size_t byteLength, | 74 size_t byteLength, |
76 SkScalar x, | 75 SkScalar x, |
77 SkScalar y, | 76 SkScalar y, |
78 const SkPaint& paint) SK_OVERRIDE; | 77 const SkPaint& paint) SK_OVERRIDE; |
79 void onDrawPosText(const void* text, | 78 void onDrawPosText(const void* text, |
80 size_t byteLength, | 79 size_t byteLength, |
81 const SkPoint pos[], | 80 const SkPoint pos[], |
82 const SkPaint& paint) SK_OVERRIDE; | 81 const SkPaint& paint) SK_OVERRIDE; |
83 void onDrawPosTextH(const void* text, | 82 void onDrawPosTextH(const void* text, |
84 size_t byteLength, | 83 size_t byteLength, |
85 const SkScalar xpos[], | 84 const SkScalar xpos[], |
86 SkScalar constY, | 85 SkScalar constY, |
87 const SkPaint& paint) SK_OVERRIDE; | 86 const SkPaint& paint) SK_OVERRIDE; |
88 void onDrawTextOnPath(const void* text, | 87 void onDrawTextOnPath(const void* text, |
89 size_t byteLength, | 88 size_t byteLength, |
90 const SkPath& path, | 89 const SkPath& path, |
91 const SkMatrix* matrix, | 90 const SkMatrix* matrix, |
92 const SkPaint& paint) SK_OVERRIDE; | 91 const SkPaint& paint) SK_OVERRIDE; |
| 92 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 93 const SkPoint texCoords[4], SkXfermode* xmode, |
| 94 const SkPaint& paint) SK_OVERRIDE; |
| 95 |
93 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; | 96 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; |
94 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle) SK_OVERRIDE; | 97 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle) SK_OVERRIDE; |
95 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; | 98 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; |
96 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE; | 99 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE; |
97 | 100 |
98 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE
RRIDE; | 101 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE
RRIDE; |
99 | 102 |
100 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | 103 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; |
101 void onPopCull() SK_OVERRIDE; | 104 void onPopCull() SK_OVERRIDE; |
102 | 105 |
103 private: | 106 private: |
104 template <typename T> | 107 template <typename T> |
105 T* copy(const T*); | 108 T* copy(const T*); |
106 | 109 |
107 template <typename T> | 110 template <typename T> |
108 T* copy(const T[], size_t count); | 111 T* copy(const T[], size_t count); |
109 | 112 |
110 SkRecord* fRecord; | 113 SkRecord* fRecord; |
111 }; | 114 }; |
112 | 115 |
113 #endif//SkRecorder_DEFINED | 116 #endif//SkRecorder_DEFINED |
OLD | NEW |