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::drawPicture(SkPicture& picture) { | 522 void SkDebugCanvas::onDrawPicture(const SkPicture* picture) { |
523 this->addDrawCommand(new SkDrawPictureCommand(picture)); | 523 this->addDrawCommand(new SkDrawPictureCommand(picture)); |
524 } | 524 } |
525 | 525 |
526 void SkDebugCanvas::drawPoints(PointMode mode, size_t count, | 526 void SkDebugCanvas::drawPoints(PointMode mode, size_t count, |
527 const SkPoint pts[], const SkPaint& paint) { | 527 const SkPoint pts[], const SkPaint& paint) { |
528 this->addDrawCommand(new SkDrawPointsCommand(mode, count, pts, paint)); | 528 this->addDrawCommand(new SkDrawPointsCommand(mode, count, pts, paint)); |
529 } | 529 } |
530 | 530 |
531 void SkDebugCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP
oint pos[], | 531 void SkDebugCanvas::onDrawPosText(const void* text, size_t byteLength, const SkP
oint pos[], |
532 const SkPaint& paint) { | 532 const SkPaint& paint) { |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 } | 730 } |
731 | 731 |
732 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 732 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
733 if (fCalledAddStackData) { | 733 if (fCalledAddStackData) { |
734 fClipStackData.appendf("<br>"); | 734 fClipStackData.appendf("<br>"); |
735 addPathData(devPath, "pathOut"); | 735 addPathData(devPath, "pathOut"); |
736 return true; | 736 return true; |
737 } | 737 } |
738 return false; | 738 return false; |
739 } | 739 } |
OLD | NEW |