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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; | 83 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; |
84 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 84 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
85 const SkPaint* paint) SK_OVERRIDE; | 85 const SkPaint* paint) SK_OVERRIDE; |
86 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 86 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
87 const SkRect& dst, const SkPaint* paint, | 87 const SkRect& dst, const SkPaint* paint, |
88 DrawBitmapRectFlags flags) SK_OVERRIDE; | 88 DrawBitmapRectFlags flags) SK_OVERRIDE; |
89 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 89 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
90 const SkPaint* paint) SK_OVERRIDE; | 90 const SkPaint* paint) SK_OVERRIDE; |
91 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 91 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
92 const SkPaint* paint) SK_OVERRIDE; | 92 const SkPaint* paint) SK_OVERRIDE; |
| 93 virtual void drawText(const void* text, size_t byteLength, SkScalar x, |
| 94 SkScalar y, const SkPaint& paint) SK_OVERRIDE; |
| 95 virtual void drawPosText(const void* text, size_t byteLength, |
| 96 const SkPoint pos[], const SkPaint& paint) SK_OVERR
IDE; |
| 97 virtual void drawPosTextH(const void* text, size_t byteLength, |
| 98 const SkScalar xpos[], SkScalar constY, |
| 99 const SkPaint& paint) SK_OVERRIDE; |
| 100 virtual void drawTextOnPath(const void* text, size_t byteLength, |
| 101 const SkPath& path, const SkMatrix* matrix, |
| 102 const SkPaint& paint) SK_OVERRIDE; |
93 virtual void drawPicture(SkPicture&) SK_OVERRIDE; | 103 virtual void drawPicture(SkPicture&) SK_OVERRIDE; |
94 virtual void drawVertices(VertexMode vmode, int vertexCount, | 104 virtual void drawVertices(VertexMode vmode, int vertexCount, |
95 const SkPoint vertices[], const SkPoint texs[], | 105 const SkPoint vertices[], const SkPoint texs[], |
96 const SkColor colors[], SkXfermode* xmode, | 106 const SkColor colors[], SkXfermode* xmode, |
97 const uint16_t indices[], int indexCount, | 107 const uint16_t indices[], int indexCount, |
98 const SkPaint& paint) SK_OVERRIDE; | 108 const SkPaint& paint) SK_OVERRIDE; |
99 virtual void drawData(const void*, size_t) SK_OVERRIDE; | 109 virtual void drawData(const void*, size_t) SK_OVERRIDE; |
100 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 110 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
101 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 111 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
102 virtual void endCommentGroup() SK_OVERRIDE; | 112 virtual void endCommentGroup() SK_OVERRIDE; |
103 | 113 |
104 protected: | 114 protected: |
105 virtual void willSave(SaveFlags) SK_OVERRIDE; | 115 virtual void willSave(SaveFlags) SK_OVERRIDE; |
106 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 116 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
107 virtual void willRestore() SK_OVERRIDE; | 117 virtual void willRestore() SK_OVERRIDE; |
108 | 118 |
109 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 119 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
110 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 120 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
111 | 121 |
112 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 122 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
113 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | |
114 const SkPaint&) SK_OVERRIDE; | |
115 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | |
116 const SkPaint&) SK_OVERRIDE; | |
117 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | |
118 SkScalar constY, const SkPaint&) SK_OVERRIDE; | |
119 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | |
120 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | |
121 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | 123 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; |
122 virtual void onPopCull() SK_OVERRIDE; | 124 virtual void onPopCull() SK_OVERRIDE; |
123 | 125 |
124 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 126 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
125 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 127 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
126 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 128 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
127 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 129 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
128 | 130 |
129 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); | 131 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); |
130 | 132 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 public: | 164 public: |
163 SkDebugfDumper(); | 165 SkDebugfDumper(); |
164 | 166 |
165 private: | 167 private: |
166 typedef SkFormatDumper INHERITED; | 168 typedef SkFormatDumper INHERITED; |
167 }; | 169 }; |
168 | 170 |
169 #endif | 171 #endif |
170 | 172 |
171 #endif | 173 #endif |
OLD | NEW |