| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 const SkPaint* paint, | 441 const SkPaint* paint, |
| 442 SkCanvas::DrawBitmapRectFlags flags) { | 442 SkCanvas::DrawBitmapRectFlags flags) { |
| 443 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint, fl
ags)); | 443 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint, fl
ags)); |
| 444 } | 444 } |
| 445 | 445 |
| 446 void SkDebugCanvas::drawBitmapNine(const SkBitmap& bitmap, | 446 void SkDebugCanvas::drawBitmapNine(const SkBitmap& bitmap, |
| 447 const SkIRect& center, const SkRect& dst, const SkPaint* paint) { | 447 const SkIRect& center, const SkRect& dst, const SkPaint* paint) { |
| 448 this->addDrawCommand(new SkDrawBitmapNineCommand(bitmap, center, dst, paint)
); | 448 this->addDrawCommand(new SkDrawBitmapNineCommand(bitmap, center, dst, paint)
); |
| 449 } | 449 } |
| 450 | 450 |
| 451 void SkDebugCanvas::drawData(const void* data, size_t length) { | |
| 452 this->addDrawCommand(new SkDrawDataCommand(data, length)); | |
| 453 } | |
| 454 | |
| 455 void SkDebugCanvas::beginCommentGroup(const char* description) { | 451 void SkDebugCanvas::beginCommentGroup(const char* description) { |
| 456 this->addDrawCommand(new SkBeginCommentGroupCommand(description)); | 452 this->addDrawCommand(new SkBeginCommentGroupCommand(description)); |
| 457 } | 453 } |
| 458 | 454 |
| 459 void SkDebugCanvas::addComment(const char* kywd, const char* value) { | 455 void SkDebugCanvas::addComment(const char* kywd, const char* value) { |
| 460 this->addDrawCommand(new SkCommentCommand(kywd, value)); | 456 this->addDrawCommand(new SkCommentCommand(kywd, value)); |
| 461 } | 457 } |
| 462 | 458 |
| 463 void SkDebugCanvas::endCommentGroup() { | 459 void SkDebugCanvas::endCommentGroup() { |
| 464 this->addDrawCommand(new SkEndCommentGroupCommand()); | 460 this->addDrawCommand(new SkEndCommentGroupCommand()); |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 } | 682 } |
| 687 | 683 |
| 688 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 684 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
| 689 if (fCalledAddStackData) { | 685 if (fCalledAddStackData) { |
| 690 fClipStackData.appendf("<br>"); | 686 fClipStackData.appendf("<br>"); |
| 691 addPathData(devPath, "pathOut"); | 687 addPathData(devPath, "pathOut"); |
| 692 return true; | 688 return true; |
| 693 } | 689 } |
| 694 return false; | 690 return false; |
| 695 } | 691 } |
| OLD | NEW |