Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: src/utils/debugger/SkDrawCommand.cpp

Issue 933483002: add Method param to drawTextOnPath, supporting SVG spec Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add guard for android Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "SkDrawCommand.h" 10 #include "SkDrawCommand.h"
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 fInfo.push(SkObjectParser::PathToString(path)); 764 fInfo.push(SkObjectParser::PathToString(path));
765 if (matrix) { 765 if (matrix) {
766 fInfo.push(SkObjectParser::MatrixToString(*matrix)); 766 fInfo.push(SkObjectParser::MatrixToString(*matrix));
767 } 767 }
768 fInfo.push(SkObjectParser::PaintToString(paint)); 768 fInfo.push(SkObjectParser::PaintToString(paint));
769 } 769 }
770 770
771 void SkDrawTextOnPathCommand::execute(SkCanvas* canvas) const { 771 void SkDrawTextOnPathCommand::execute(SkCanvas* canvas) const {
772 canvas->drawTextOnPath(fText, fByteLength, fPath, 772 canvas->drawTextOnPath(fText, fByteLength, fPath,
773 fMatrix.isIdentity() ? NULL : &fMatrix, 773 fMatrix.isIdentity() ? NULL : &fMatrix,
774 fPaint); 774 SkCanvas::kStretch_TextOnPathMethod, fPaint);
775 } 775 }
776 776
777 SkDrawVerticesCommand::SkDrawVerticesCommand(SkCanvas::VertexMode vmode, int ver texCount, 777 SkDrawVerticesCommand::SkDrawVerticesCommand(SkCanvas::VertexMode vmode, int ver texCount,
778 const SkPoint vertices[], const SkP oint texs[], 778 const SkPoint vertices[], const SkP oint texs[],
779 const SkColor colors[], SkXfermode* xfermode, 779 const SkColor colors[], SkXfermode* xfermode,
780 const uint16_t indices[], int index Count, 780 const uint16_t indices[], int index Count,
781 const SkPaint& paint) 781 const SkPaint& paint)
782 : INHERITED(kDrawVertices_OpType) { 782 : INHERITED(kDrawVertices_OpType) {
783 fVmode = vmode; 783 fVmode = vmode;
784 784
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 898
899 void SkSetMatrixCommand::setUserMatrix(const SkMatrix& userMatrix) { 899 void SkSetMatrixCommand::setUserMatrix(const SkMatrix& userMatrix) {
900 fUserMatrix = userMatrix; 900 fUserMatrix = userMatrix;
901 } 901 }
902 902
903 void SkSetMatrixCommand::execute(SkCanvas* canvas) const { 903 void SkSetMatrixCommand::execute(SkCanvas* canvas) const {
904 SkMatrix temp = SkMatrix::Concat(fUserMatrix, fMatrix); 904 SkMatrix temp = SkMatrix::Concat(fUserMatrix, fMatrix);
905 canvas->setMatrix(temp); 905 canvas->setMatrix(temp);
906 } 906 }
907 907
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698