OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 | 8 |
9 | 9 |
10 #ifndef SKDEBUGCANVAS_H_ | 10 #ifndef SKDEBUGCANVAS_H_ |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 protected: | 169 protected: |
170 void willSave() SK_OVERRIDE; | 170 void willSave() SK_OVERRIDE; |
171 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK
_OVERRIDE; | 171 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK
_OVERRIDE; |
172 void willRestore() SK_OVERRIDE; | 172 void willRestore() SK_OVERRIDE; |
173 | 173 |
174 void didConcat(const SkMatrix&) SK_OVERRIDE; | 174 void didConcat(const SkMatrix&) SK_OVERRIDE; |
175 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 175 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
176 | 176 |
177 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID
E; | 177 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID
E; |
178 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 178 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, |
179 const SkPaint&) SK_OVERRIDE; | 179 const SkPaint&) SK_OVERRIDE; |
180 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 180 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], |
181 const SkPaint&) SK_OVERRIDE; | 181 const SkPaint&) SK_OVERRIDE; |
182 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 182 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], |
183 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 183 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
184 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 184 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, |
185 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 185 const SkMatrix* matrix, const SkPaint&) SK_OVERRIDE; |
186 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 186 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
187 const SkPaint& paint) SK_OVERRIDE; | 187 const SkPaint& paint) SK_OVERRIDE; |
188 | 188 |
| 189 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 190 const SkPoint texCoords[4], SkXfermode* xmode, const SkPain
t& paint); |
189 void onDrawPaint(const SkPaint&) SK_OVERRIDE; | 191 void onDrawPaint(const SkPaint&) SK_OVERRIDE; |
190 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) SK_OVERRIDE; | 192 |
191 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; | 193 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; |
192 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; | 194 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; |
193 void onDrawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; | 195 void onDrawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; |
| 196 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain
t&) SK_OVERRIDE; |
| 197 void onDrawVertices(VertexMode vmode, int vertexCount, |
| 198 const SkPoint vertices[], const SkPoint texs[], |
| 199 const SkColor colors[], SkXfermode* xmode, |
| 200 const uint16_t indices[], int indexCount, |
| 201 const SkPaint&) SK_OVERRIDE; |
194 void onDrawPath(const SkPath&, const SkPaint&) SK_OVERRIDE; | 202 void onDrawPath(const SkPath&, const SkPaint&) SK_OVERRIDE; |
195 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) SK_OVERRIDE; | 203 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain
t*) SK_OVERRIDE; |
196 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, | 204 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst,
const SkPaint*, |
197 DrawBitmapRectFlags flags) SK_OVERRIDE; | 205 DrawBitmapRectFlags flags) SK_OVERRIDE; |
198 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) SK_OVERRIDE; | 206 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*
) SK_OVERRIDE; |
199 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 207 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
200 const SkPaint*) SK_OVERRIDE; | 208 const SkPaint*) SK_OVERRIDE; |
201 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 209 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
202 const SkPaint*) SK_OVERRIDE; | 210 const SkPaint*) SK_OVERRIDE; |
203 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE
RRIDE; | 211 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE
RRIDE; |
204 void onDrawVertices(VertexMode vmode, int vertexCount, | |
205 const SkPoint vertices[], const SkPoint texs[], | |
206 const SkColor colors[], SkXfermode* xmode, | |
207 const uint16_t indices[], int indexCount, | |
208 const SkPaint&) SK_OVERRIDE; | |
209 | |
210 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; | 212 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; |
211 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; | 213 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; |
212 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; | 214 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; |
213 void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; | 215 void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; |
214 | 216 |
215 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE
RRIDE; | 217 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE
RRIDE; |
216 | 218 |
217 void markActiveCommands(int index); | 219 void markActiveCommands(int index); |
218 | 220 |
219 private: | 221 private: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 bool lastClipStackData(const SkPath& devPath); | 271 bool lastClipStackData(const SkPath& devPath); |
270 void outputConicPoints(const SkPoint* pts, SkScalar weight); | 272 void outputConicPoints(const SkPoint* pts, SkScalar weight); |
271 void outputPoints(const SkPoint* pts, int count); | 273 void outputPoints(const SkPoint* pts, int count); |
272 void outputPointsCommon(const SkPoint* pts, int count); | 274 void outputPointsCommon(const SkPoint* pts, int count); |
273 void outputScalar(SkScalar num); | 275 void outputScalar(SkScalar num); |
274 | 276 |
275 typedef SkCanvas INHERITED; | 277 typedef SkCanvas INHERITED; |
276 }; | 278 }; |
277 | 279 |
278 #endif | 280 #endif |
OLD | NEW |