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