| 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 const SkPaint& paint) { | 564 const SkPaint& paint) { |
| 565 this->addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint)); | 565 this->addDrawCommand(new SkDrawTextCommand(text, byteLength, x, y, paint)); |
| 566 } | 566 } |
| 567 | 567 |
| 568 void SkDebugCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const
SkPath& path, | 568 void SkDebugCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const
SkPath& path, |
| 569 const SkMatrix* matrix, const SkPaint& pain
t) { | 569 const SkMatrix* matrix, const SkPaint& pain
t) { |
| 570 this->addDrawCommand( | 570 this->addDrawCommand( |
| 571 new SkDrawTextOnPathCommand(text, byteLength, path, matrix, paint)); | 571 new SkDrawTextOnPathCommand(text, byteLength, path, matrix, paint)); |
| 572 } | 572 } |
| 573 | 573 |
| 574 void SkDebugCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar
y, |
| 575 const SkPaint& paint) { |
| 576 this->addDrawCommand(new SkDrawTextBlobCommand(blob, x, y, paint)); |
| 577 } |
| 578 |
| 574 void SkDebugCanvas::drawVertices(VertexMode vmode, int vertexCount, | 579 void SkDebugCanvas::drawVertices(VertexMode vmode, int vertexCount, |
| 575 const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], | 580 const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], |
| 576 SkXfermode*, const uint16_t indices[], int indexCount, | 581 SkXfermode*, const uint16_t indices[], int indexCount, |
| 577 const SkPaint& paint) { | 582 const SkPaint& paint) { |
| 578 this->addDrawCommand(new SkDrawVerticesCommand(vmode, vertexCount, vertices, | 583 this->addDrawCommand(new SkDrawVerticesCommand(vmode, vertexCount, vertices, |
| 579 texs, colors, NULL, indices, indexCount, paint)); | 584 texs, colors, NULL, indices, indexCount, paint)); |
| 580 } | 585 } |
| 581 | 586 |
| 582 void SkDebugCanvas::onPushCull(const SkRect& cullRect) { | 587 void SkDebugCanvas::onPushCull(const SkRect& cullRect) { |
| 583 this->addDrawCommand(new SkPushCullCommand(cullRect)); | 588 this->addDrawCommand(new SkPushCullCommand(cullRect)); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 } | 737 } |
| 733 | 738 |
| 734 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { | 739 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { |
| 735 if (fCalledAddStackData) { | 740 if (fCalledAddStackData) { |
| 736 fClipStackData.appendf("<br>"); | 741 fClipStackData.appendf("<br>"); |
| 737 addPathData(devPath, "pathOut"); | 742 addPathData(devPath, "pathOut"); |
| 738 return true; | 743 return true; |
| 739 } | 744 } |
| 740 return false; | 745 return false; |
| 741 } | 746 } |
| OLD | NEW |