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

Unified Diff: samplecode/SampleAll.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 | « include/utils/SkNWayCanvas.h ('k') | samplecode/SampleShaderText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleAll.cpp
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp
index 16c79c9dbfe3bb2b5e7f53cf3aa6b402cf5f6f6f..baaa32de3d054fb7f8c87c3289e064f7f1fa83c2 100644
--- a/samplecode/SampleAll.cpp
+++ b/samplecode/SampleAll.cpp
@@ -472,9 +472,11 @@ protected:
paint.setColor(SK_ColorMAGENTA);
paint.setTextEncoding(SkPaint::kUTF16_TextEncoding);
matrix.setTranslate(SkIntToScalar(10), SkIntToScalar(10));
- canvas->drawTextOnPath((void*) utf16, sizeof(utf16), path, &matrix, paint);
+ canvas->drawTextOnPath((void*) utf16, sizeof(utf16), path, &matrix,
+ SkCanvas::kStretch_TextOnPathMethod, paint);
canvas->translate(0, SkIntToScalar(20));
- canvas->drawTextOnPath((void*) utf16simple, sizeof(utf16simple), path, &matrix, paint);
+ canvas->drawTextOnPath((void*) utf16simple, sizeof(utf16simple), path, &matrix,
+ SkCanvas::kStretch_TextOnPathMethod, paint);
canvas->restore();
canvas->translate(0, SkIntToScalar(60));
« no previous file with comments | « include/utils/SkNWayCanvas.h ('k') | samplecode/SampleShaderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698