OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #ifndef SkDumpCanvas_DEFINED | 8 #ifndef SkDumpCanvas_DEFINED |
9 #define SkDumpCanvas_DEFINED | 9 #define SkDumpCanvas_DEFINED |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 DrawBitmapRectFlags flags) SK_OVERRIDE; | 89 DrawBitmapRectFlags flags) SK_OVERRIDE; |
90 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 90 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
91 const SkPaint* paint) SK_OVERRIDE; | 91 const SkPaint* paint) SK_OVERRIDE; |
92 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 92 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
93 const SkPaint* paint) SK_OVERRIDE; | 93 const SkPaint* paint) SK_OVERRIDE; |
94 virtual void drawVertices(VertexMode vmode, int vertexCount, | 94 virtual void drawVertices(VertexMode vmode, int vertexCount, |
95 const SkPoint vertices[], const SkPoint texs[], | 95 const SkPoint vertices[], const SkPoint texs[], |
96 const SkColor colors[], SkXfermode* xmode, | 96 const SkColor colors[], SkXfermode* xmode, |
97 const uint16_t indices[], int indexCount, | 97 const uint16_t indices[], int indexCount, |
98 const SkPaint& paint) SK_OVERRIDE; | 98 const SkPaint& paint) SK_OVERRIDE; |
99 virtual void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRI
DE; | |
100 virtual void drawData(const void*, size_t) SK_OVERRIDE; | 99 virtual void drawData(const void*, size_t) SK_OVERRIDE; |
101 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 100 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
102 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 101 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
103 virtual void endCommentGroup() SK_OVERRIDE; | 102 virtual void endCommentGroup() SK_OVERRIDE; |
104 | 103 |
105 protected: | 104 protected: |
106 virtual void willSave() SK_OVERRIDE; | 105 virtual void willSave() SK_OVERRIDE; |
107 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 106 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
108 virtual void willRestore() SK_OVERRIDE; | 107 virtual void willRestore() SK_OVERRIDE; |
109 | 108 |
110 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 109 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
111 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 110 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
112 | 111 |
113 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 112 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
114 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 113 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
115 const SkPaint&) SK_OVERRIDE; | 114 const SkPaint&) SK_OVERRIDE; |
116 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 115 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
117 const SkPaint&) SK_OVERRIDE; | 116 const SkPaint&) SK_OVERRIDE; |
118 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 117 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
119 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 118 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
120 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 119 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
121 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 120 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
| 121 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 122 const SkPoint texCoords[4], SkXfermode* xmode, |
| 123 const SkPaint& paint) SK_OVERRIDE; |
122 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | 124 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; |
123 virtual void onPopCull() SK_OVERRIDE; | 125 virtual void onPopCull() SK_OVERRIDE; |
124 | 126 |
125 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 127 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
126 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 128 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
127 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 129 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
128 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 130 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
129 | 131 |
130 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 132 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
131 | 133 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 public: | 167 public: |
166 SkDebugfDumper(); | 168 SkDebugfDumper(); |
167 | 169 |
168 private: | 170 private: |
169 typedef SkFormatDumper INHERITED; | 171 typedef SkFormatDumper INHERITED; |
170 }; | 172 }; |
171 | 173 |
172 #endif | 174 #endif |
173 | 175 |
174 #endif | 176 #endif |
OLD | NEW |