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

Unified Diff: src/animator/SkTextOnPath.cpp

Issue 933483002: add Method param to drawTextOnPath, supporting SVG spec Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samplecode/SampleTextOnPath.cpp ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/animator/SkTextOnPath.cpp
diff --git a/src/animator/SkTextOnPath.cpp b/src/animator/SkTextOnPath.cpp
index 7bdb7fd977f48cd63ef43f286be8bf5f68e7599d..6adbd99c4f9e7ad77351d85b78d5dc990492de3e 100644
--- a/src/animator/SkTextOnPath.cpp
+++ b/src/animator/SkTextOnPath.cpp
@@ -33,7 +33,10 @@ bool SkTextOnPath::draw(SkAnimateMaker& maker) {
SkASSERT(text);
SkASSERT(path);
SkBoundableAuto boundable(this, maker);
- maker.fCanvas->drawTextOnPathHV(text->getText(), text->getSize(),
- path->getPath(), offset, 0, *maker.fPaint);
+ SkMatrix matrix;
+ matrix.setTranslate(offset, 0);
+ maker.fCanvas->drawTextOnPath(text->getText(), text->getSize(),
+ path->getPath(), &matrix, SkCanvas::kStretch_TextOnPathMethod,
+ *maker.fPaint);
return false;
}
« no previous file with comments | « samplecode/SampleTextOnPath.cpp ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698