Index: samplecode/SampleShaderText.cpp |
diff --git a/samplecode/SampleShaderText.cpp b/samplecode/SampleShaderText.cpp |
index 89abfc234549d0b355f64e2e3b346e823a07a8ab..e9f7a405e8ca675553b35f858b6075e537c89afc 100644 |
--- a/samplecode/SampleShaderText.cpp |
+++ b/samplecode/SampleShaderText.cpp |
@@ -168,6 +168,7 @@ protected: |
static const int testsPerCol = 8; |
static const int rowHeight = 60; |
static const int colWidth = 300; |
+ SkCanvas::TextOnPathMethod method = SkCanvas::kStretch_TextOnPathMethod; |
canvas->save(); |
for (size_t s = 0; s < SK_ARRAY_COUNT(shaders); s++) { |
canvas->save(); |
@@ -181,7 +182,7 @@ protected: |
++i; |
canvas->translate(SkIntToScalar((i / testsPerCol) * colWidth), |
SkIntToScalar((i % testsPerCol) * rowHeight)); |
- canvas->drawTextOnPath(text, textLen, path, NULL, paint); |
+ canvas->drawTextOnPath(text, textLen, path, NULL, method, paint); |
canvas->restore(); |
} |
canvas->restore(); |