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

Unified Diff: gm/bitmapscroll.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 | « no previous file | gm/shadertext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bitmapscroll.cpp
diff --git a/gm/bitmapscroll.cpp b/gm/bitmapscroll.cpp
index 9f8aacae54a4e3009ac652226f7a1e589f8c80ad..cb093637f75b2546dc78aa33b5bd947b0a806345 100644
--- a/gm/bitmapscroll.cpp
+++ b/gm/bitmapscroll.cpp
@@ -110,7 +110,8 @@ protected:
SkPath path;
path.moveTo(SkIntToScalar(startX), SkIntToScalar(startY));
path.lineTo(SkIntToScalar(endX), SkIntToScalar(endY));
- canvas->drawTextOnPath(text, strlen(text), path, NULL, paint);
+ canvas->drawTextOnPath(text, strlen(text), path, NULL,
+ SkCanvas::kStretch_TextOnPathMethod, paint);
}
/** Stamp out 9 copies of origBitmap, scrolled in each direction (and
« no previous file with comments | « no previous file | gm/shadertext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698