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; | |
97 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 78 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
98 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 79 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
99 virtual void endCommentGroup() SK_OVERRIDE; | 80 virtual void endCommentGroup() SK_OVERRIDE; |
100 | 81 |
101 protected: | 82 protected: |
102 virtual void willSave() SK_OVERRIDE; | 83 virtual void willSave() SK_OVERRIDE; |
103 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 84 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
104 virtual void willRestore() SK_OVERRIDE; | 85 virtual void willRestore() SK_OVERRIDE; |
105 | 86 |
106 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 87 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
107 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 88 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
108 | 89 |
109 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 90 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
110 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 91 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
111 const SkPaint&) SK_OVERRIDE; | 92 const SkPaint&) SK_OVERRIDE; |
112 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 93 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
113 const SkPaint&) SK_OVERRIDE; | 94 const SkPaint&) SK_OVERRIDE; |
114 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 95 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
115 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 96 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
116 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 97 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
117 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 98 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
118 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 99 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
119 const SkPaint& paint) SK_OVERRIDE; | 100 const SkPaint& paint) SK_OVERRIDE; |
120 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 101 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
121 const SkPoint texCoords[4], SkXfermode* xmode, | 102 const SkPoint texCoords[4], SkXfermode* xmode, |
122 const SkPaint& paint) SK_OVERRIDE; | 103 const SkPaint& paint) SK_OVERRIDE; |
123 | 104 |
| 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 |
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 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 131 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
130 | 132 |
131 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); | 133 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); |
132 | 134 |
133 private: | 135 private: |
(...skipping 30 matching lines...) Expand all Loading... |
164 public: | 166 public: |
165 SkDebugfDumper(); | 167 SkDebugfDumper(); |
166 | 168 |
167 private: | 169 private: |
168 typedef SkFormatDumper INHERITED; | 170 typedef SkFormatDumper INHERITED; |
169 }; | 171 }; |
170 | 172 |
171 #endif | 173 #endif |
172 | 174 |
173 #endif | 175 #endif |
OLD | NEW |