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 #include "SkCanvasPriv.h" | 8 #include "SkCanvasPriv.h" |
9 #include "SkClipStack.h" | 9 #include "SkClipStack.h" |
10 #include "SkDebugCanvas.h" | 10 #include "SkDebugCanvas.h" |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 | 589 |
590 void SkDebugCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, con
st SkRect& dst, | 590 void SkDebugCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, con
st SkRect& dst, |
591 const SkPaint* paint, SrcRectConstraint cons
traint) { | 591 const SkPaint* paint, SrcRectConstraint cons
traint) { |
592 this->addDrawCommand(new SkDrawImageRectCommand(image, src, dst, paint, cons
traint)); | 592 this->addDrawCommand(new SkDrawImageRectCommand(image, src, dst, paint, cons
traint)); |
593 } | 593 } |
594 | 594 |
595 void SkDebugCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) { | 595 void SkDebugCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) { |
596 this->addDrawCommand(new SkDrawOvalCommand(oval, paint)); | 596 this->addDrawCommand(new SkDrawOvalCommand(oval, paint)); |
597 } | 597 } |
598 | 598 |
| 599 void SkDebugCanvas::onDrawArc(const SkRect& oval, SkScalar startAngle, SkScalar
sweepAngle, |
| 600 bool useCenter, const SkPaint& paint) { |
| 601 this->addDrawCommand(new SkDrawArcCommand(oval, startAngle, sweepAngle, useC
enter, paint)); |
| 602 } |
| 603 |
599 void SkDebugCanvas::onDrawPaint(const SkPaint& paint) { | 604 void SkDebugCanvas::onDrawPaint(const SkPaint& paint) { |
600 this->addDrawCommand(new SkDrawPaintCommand(paint)); | 605 this->addDrawCommand(new SkDrawPaintCommand(paint)); |
601 } | 606 } |
602 | 607 |
603 void SkDebugCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { | 608 void SkDebugCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { |
604 this->addDrawCommand(new SkDrawPathCommand(path, paint)); | 609 this->addDrawCommand(new SkDrawPathCommand(path, paint)); |
605 } | 610 } |
606 | 611 |
607 void SkDebugCanvas::onDrawPicture(const SkPicture* picture, | 612 void SkDebugCanvas::onDrawPicture(const SkPicture* picture, |
608 const SkMatrix* matrix, | 613 const SkMatrix* matrix, |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 } | 843 } |
839 | 844 |
840 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 845 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
841 if (fCalledAddStackData) { | 846 if (fCalledAddStackData) { |
842 fClipStackData.appendf("<br>"); | 847 fClipStackData.appendf("<br>"); |
843 addPathData(devPath, "pathOut"); | 848 addPathData(devPath, "pathOut"); |
844 return true; | 849 return true; |
845 } | 850 } |
846 return false; | 851 return false; |
847 } | 852 } |
OLD | NEW |