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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 182 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
183 | 183 |
184 virtual void endCommentGroup() SK_OVERRIDE; | 184 virtual void endCommentGroup() SK_OVERRIDE; |
185 | 185 |
186 virtual void drawOval(const SkRect& oval, const SkPaint&) SK_OVERRIDE; | 186 virtual void drawOval(const SkRect& oval, const SkPaint&) SK_OVERRIDE; |
187 | 187 |
188 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 188 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
189 | 189 |
190 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; | 190 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; |
191 | 191 |
192 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; | |
193 | |
194 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], | 192 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], |
195 const SkPaint&) SK_OVERRIDE; | 193 const SkPaint&) SK_OVERRIDE; |
196 | 194 |
197 virtual void drawRect(const SkRect& rect, const SkPaint&) SK_OVERRIDE; | 195 virtual void drawRect(const SkRect& rect, const SkPaint&) SK_OVERRIDE; |
198 | 196 |
199 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRI
DE; | 197 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRI
DE; |
200 | 198 |
201 virtual void drawSprite(const SkBitmap&, int left, int top, | 199 virtual void drawSprite(const SkBitmap&, int left, int top, |
202 const SkPaint*) SK_OVERRIDE; | 200 const SkPaint*) SK_OVERRIDE; |
203 | 201 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 248 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
251 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 249 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
252 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | 250 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; |
253 virtual void onPopCull() SK_OVERRIDE; | 251 virtual void onPopCull() SK_OVERRIDE; |
254 | 252 |
255 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 253 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
256 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 254 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
257 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 255 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
258 virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; | 256 virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; |
259 | 257 |
| 258 virtual void onDrawPicture(const SkPicture* picture) SK_OVERRIDE; |
| 259 |
260 void markActiveCommands(int index); | 260 void markActiveCommands(int index); |
261 | 261 |
262 private: | 262 private: |
263 SkTDArray<SkDrawCommand*> fCommandVector; | 263 SkTDArray<SkDrawCommand*> fCommandVector; |
264 SkPicture* fPicture; | 264 SkPicture* fPicture; |
265 int fWidth; | 265 int fWidth; |
266 int fHeight; | 266 int fHeight; |
267 bool fFilter; | 267 bool fFilter; |
268 bool fMegaVizMode; | 268 bool fMegaVizMode; |
269 int fIndex; | 269 int fIndex; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 bool lastClipStackData(const SkPath& devPath); | 327 bool lastClipStackData(const SkPath& devPath); |
328 void outputConicPoints(const SkPoint* pts, SkScalar weight); | 328 void outputConicPoints(const SkPoint* pts, SkScalar weight); |
329 void outputPoints(const SkPoint* pts, int count); | 329 void outputPoints(const SkPoint* pts, int count); |
330 void outputPointsCommon(const SkPoint* pts, int count); | 330 void outputPointsCommon(const SkPoint* pts, int count); |
331 void outputScalar(SkScalar num); | 331 void outputScalar(SkScalar num); |
332 | 332 |
333 typedef SkCanvas INHERITED; | 333 typedef SkCanvas INHERITED; |
334 }; | 334 }; |
335 | 335 |
336 #endif | 336 #endif |
OLD | NEW |