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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 void SkDebugCanvas::onDrawImage(const SkImage* image, SkScalar left, SkScalar to
p, | 425 void SkDebugCanvas::onDrawImage(const SkImage* image, SkScalar left, SkScalar to
p, |
426 const SkPaint* paint) { | 426 const SkPaint* paint) { |
427 SkDebugf("SkDebugCanvas::onDrawImage unimplemented\n"); | 427 SkDebugf("SkDebugCanvas::onDrawImage unimplemented\n"); |
428 } | 428 } |
429 | 429 |
430 void SkDebugCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, con
st SkRect& dst, | 430 void SkDebugCanvas::onDrawImageRect(const SkImage* image, const SkRect* src, con
st SkRect& dst, |
431 const SkPaint* paint) { | 431 const SkPaint* paint) { |
432 SkDebugf("SkDebugCanvas::onDrawImageRect unimplemented\n"); | 432 SkDebugf("SkDebugCanvas::onDrawImageRect unimplemented\n"); |
433 } | 433 } |
434 | 434 |
435 void SkDebugCanvas::beginCommentGroup(const char* description) { | |
436 this->addDrawCommand(new SkBeginCommentGroupCommand(description)); | |
437 } | |
438 | |
439 void SkDebugCanvas::addComment(const char* kywd, const char* value) { | |
440 this->addDrawCommand(new SkCommentCommand(kywd, value)); | |
441 } | |
442 | |
443 void SkDebugCanvas::endCommentGroup() { | |
444 this->addDrawCommand(new SkEndCommentGroupCommand()); | |
445 } | |
446 | |
447 void SkDebugCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) { | 435 void SkDebugCanvas::onDrawOval(const SkRect& oval, const SkPaint& paint) { |
448 this->addDrawCommand(new SkDrawOvalCommand(oval, paint)); | 436 this->addDrawCommand(new SkDrawOvalCommand(oval, paint)); |
449 } | 437 } |
450 | 438 |
451 void SkDebugCanvas::onDrawPaint(const SkPaint& paint) { | 439 void SkDebugCanvas::onDrawPaint(const SkPaint& paint) { |
452 this->addDrawCommand(new SkDrawPaintCommand(paint)); | 440 this->addDrawCommand(new SkDrawPaintCommand(paint)); |
453 } | 441 } |
454 | 442 |
455 void SkDebugCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { | 443 void SkDebugCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { |
456 this->addDrawCommand(new SkDrawPathCommand(path, paint)); | 444 this->addDrawCommand(new SkDrawPathCommand(path, paint)); |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 } | 661 } |
674 | 662 |
675 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 663 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
676 if (fCalledAddStackData) { | 664 if (fCalledAddStackData) { |
677 fClipStackData.appendf("<br>"); | 665 fClipStackData.appendf("<br>"); |
678 addPathData(devPath, "pathOut"); | 666 addPathData(devPath, "pathOut"); |
679 return true; | 667 return true; |
680 } | 668 } |
681 return false; | 669 return false; |
682 } | 670 } |
OLD | NEW |