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 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 } | 512 } |
513 | 513 |
514 void SkDebugCanvas::drawPaint(const SkPaint& paint) { | 514 void SkDebugCanvas::drawPaint(const SkPaint& paint) { |
515 this->addDrawCommand(new SkDrawPaintCommand(paint)); | 515 this->addDrawCommand(new SkDrawPaintCommand(paint)); |
516 } | 516 } |
517 | 517 |
518 void SkDebugCanvas::drawPath(const SkPath& path, const SkPaint& paint) { | 518 void SkDebugCanvas::drawPath(const SkPath& path, const SkPaint& paint) { |
519 this->addDrawCommand(new SkDrawPathCommand(path, paint)); | 519 this->addDrawCommand(new SkDrawPathCommand(path, paint)); |
520 } | 520 } |
521 | 521 |
522 void SkDebugCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix*, con
st SkPaint*) { | 522 void SkDebugCanvas::onDrawPicture(const SkPicture* picture, |
523 // todo: add matrix and paint to SkDrawPictureCommand | 523 const SkMatrix* matrix, |
524 this->addDrawCommand(new SkDrawPictureCommand(picture)); | 524 const SkPaint* paint) { |
| 525 this->addDrawCommand(new SkDrawPictureCommand(picture, matrix, paint)); |
525 } | 526 } |
526 | 527 |
527 void SkDebugCanvas::drawPoints(PointMode mode, size_t count, | 528 void SkDebugCanvas::drawPoints(PointMode mode, size_t count, |
528 const SkPoint pts[], const SkPaint& paint) { | 529 const SkPoint pts[], const SkPaint& paint) { |
529 this->addDrawCommand(new SkDrawPointsCommand(mode, count, pts, paint)); | 530 this->addDrawCommand(new SkDrawPointsCommand(mode, count, pts, paint)); |
530 } | 531 } |
531 | 532 |
532 void SkDebugCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP
oint pos[], | 533 void SkDebugCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP
oint pos[], |
533 const SkPaint& paint) { | 534 const SkPaint& paint) { |
534 this->addDrawCommand(new SkDrawPosTextCommand(text, byteLength, pos, paint))
; | 535 this->addDrawCommand(new SkDrawPosTextCommand(text, byteLength, pos, paint))
; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 } | 732 } |
732 | 733 |
733 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 734 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
734 if (fCalledAddStackData) { | 735 if (fCalledAddStackData) { |
735 fClipStackData.appendf("<br>"); | 736 fClipStackData.appendf("<br>"); |
736 addPathData(devPath, "pathOut"); | 737 addPathData(devPath, "pathOut"); |
737 return true; | 738 return true; |
738 } | 739 } |
739 return false; | 740 return false; |
740 } | 741 } |
OLD | NEW |