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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 private: | 69 private: |
70 typedef SkRefCnt INHERITED; | 70 typedef SkRefCnt INHERITED; |
71 }; | 71 }; |
72 | 72 |
73 Dumper* getDumper() const { return fDumper; } | 73 Dumper* getDumper() const { return fDumper; } |
74 void setDumper(Dumper*); | 74 void setDumper(Dumper*); |
75 | 75 |
76 int getNestLevel() const { return fNestLevel; } | 76 int getNestLevel() const { return fNestLevel; } |
77 | 77 |
| 78 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
| 79 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
| 80 const SkPaint& paint) SK_OVERRIDE; |
| 81 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
| 82 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
| 83 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; |
| 84 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; |
| 85 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
| 86 const SkPaint* paint) SK_OVERRIDE; |
| 87 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
| 88 const SkRect& dst, const SkPaint* paint, |
| 89 DrawBitmapRectFlags flags) SK_OVERRIDE; |
| 90 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
| 91 const SkPaint* paint) SK_OVERRIDE; |
| 92 virtual void drawVertices(VertexMode vmode, int vertexCount, |
| 93 const SkPoint vertices[], const SkPoint texs[], |
| 94 const SkColor colors[], SkXfermode* xmode, |
| 95 const uint16_t indices[], int indexCount, |
| 96 const SkPaint& paint) SK_OVERRIDE; |
78 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 97 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
79 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 98 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
80 virtual void endCommentGroup() SK_OVERRIDE; | 99 virtual void endCommentGroup() SK_OVERRIDE; |
81 | 100 |
82 protected: | 101 protected: |
83 virtual void willSave() SK_OVERRIDE; | 102 virtual void willSave() SK_OVERRIDE; |
84 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 103 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
85 virtual void willRestore() SK_OVERRIDE; | 104 virtual void willRestore() SK_OVERRIDE; |
86 | 105 |
87 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 106 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
88 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 107 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
89 | 108 |
90 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 109 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
91 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 110 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
92 const SkPaint&) SK_OVERRIDE; | 111 const SkPaint&) SK_OVERRIDE; |
93 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 112 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
94 const SkPaint&) SK_OVERRIDE; | 113 const SkPaint&) SK_OVERRIDE; |
95 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 114 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
96 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 115 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
97 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 116 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
98 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 117 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
99 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 118 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
100 const SkPaint& paint) SK_OVERRIDE; | 119 const SkPaint& paint) SK_OVERRIDE; |
101 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 120 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
102 const SkPoint texCoords[4], SkXfermode* xmode, | 121 const SkPoint texCoords[4], SkXfermode* xmode, |
103 const SkPaint& paint) SK_OVERRIDE; | 122 const SkPaint& paint) SK_OVERRIDE; |
104 | 123 |
105 void onDrawPaint(const SkPaint&) SK_OVERRIDE; | |
106 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) SK_OVERRIDE; | |
107 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; | |
108 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; | |
109 void onDrawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; | |
110 void onDrawPath(const SkPath&, const SkPaint&) SK_OVERRIDE; | |
111 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) SK_OVERRIDE; | |
112 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, | |
113 DrawBitmapRectFlags flags) SK_OVERRIDE; | |
114 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) SK_OVERRIDE; | |
115 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | |
116 const SkPaint*) SK_OVERRIDE; | |
117 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | |
118 const SkPaint*) SK_OVERRIDE; | |
119 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE
RRIDE; | |
120 void onDrawVertices(VertexMode vmode, int vertexCount, | |
121 const SkPoint vertices[], const SkPoint texs[], | |
122 const SkColor colors[], SkXfermode* xmode, | |
123 const uint16_t indices[], int indexCount, | |
124 const SkPaint&) SK_OVERRIDE; | |
125 | |
126 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 124 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
127 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 125 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
128 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 126 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
129 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 127 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
130 | 128 |
131 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 129 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
132 | 130 |
133 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); | 131 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); |
134 | 132 |
135 private: | 133 private: |
(...skipping 30 matching lines...) Expand all Loading... |
166 public: | 164 public: |
167 SkDebugfDumper(); | 165 SkDebugfDumper(); |
168 | 166 |
169 private: | 167 private: |
170 typedef SkFormatDumper INHERITED; | 168 typedef SkFormatDumper INHERITED; |
171 }; | 169 }; |
172 | 170 |
173 #endif | 171 #endif |
174 | 172 |
175 #endif | 173 #endif |
OLD | NEW |