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