OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #ifndef SKDEBUGCANVAS_H_ | 9 #ifndef SKDEBUGCANVAS_H_ |
10 #define SKDEBUGCANVAS_H_ | 10 #define SKDEBUGCANVAS_H_ |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, | 232 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, |
233 const SkPaint*, SrcRectConstraint) override; | 233 const SkPaint*, SrcRectConstraint) override; |
234 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, | 234 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect&
dst, |
235 const SkPaint*) override; | 235 const SkPaint*) override; |
236 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 236 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
237 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 237 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
238 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 238 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
239 void onClipRegion(const SkRegion& region, SkRegion::Op) override; | 239 void onClipRegion(const SkRegion& region, SkRegion::Op) override; |
240 | 240 |
241 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; | 241 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
| 242 void onDrawShadowedPicture(const SkPicture*, sk_sp<SkLights>) override; |
242 | 243 |
243 void markActiveCommands(int index); | 244 void markActiveCommands(int index); |
244 | 245 |
245 private: | 246 private: |
246 SkTDArray<SkDrawCommand*> fCommandVector; | 247 SkTDArray<SkDrawCommand*> fCommandVector; |
247 SkPicture* fPicture; | 248 SkPicture* fPicture; |
248 bool fFilter; | 249 bool fFilter; |
249 bool fMegaVizMode; | 250 bool fMegaVizMode; |
250 SkMatrix fUserMatrix; | 251 SkMatrix fUserMatrix; |
251 SkMatrix fMatrix; | 252 SkMatrix fMatrix; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 GrAuditTrail* getAuditTrail(SkCanvas*); | 295 GrAuditTrail* getAuditTrail(SkCanvas*); |
295 | 296 |
296 void updatePaintFilterCanvas(); | 297 void updatePaintFilterCanvas(); |
297 void drawAndCollectBatches(int n, SkCanvas*); | 298 void drawAndCollectBatches(int n, SkCanvas*); |
298 void cleanupAuditTrail(SkCanvas*); | 299 void cleanupAuditTrail(SkCanvas*); |
299 | 300 |
300 typedef SkCanvas INHERITED; | 301 typedef SkCanvas INHERITED; |
301 }; | 302 }; |
302 | 303 |
303 #endif | 304 #endif |
OLD | NEW |