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

Unified Diff: src/core/SkRecorder.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 side-by-side diff with in-line comments
Download patch
Index: src/core/SkRecorder.cpp
diff --git a/src/core/SkRecorder.cpp b/src/core/SkRecorder.cpp
index aafb540a052f9f428c4c70cf71c39e75d4e01397..90b21065e5e572ced0e164e86db711fed193b5df 100644
--- a/src/core/SkRecorder.cpp
+++ b/src/core/SkRecorder.cpp
@@ -227,12 +227,15 @@ void SkRecorder::onDrawPosTextH(const void* text, size_t byteLength,
}
void SkRecorder::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path,
- const SkMatrix* matrix, const SkPaint& paint) {
+ const SkMatrix* matrix,
+ SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM const SkPaint& paint) {
+ SK_SUPPORT_LEGACY_DRAWTEXTONPATH_DEFAULT_METHOD
APPEND(DrawTextOnPath,
delay_copy(paint),
this->copy((const char*)text, byteLength),
byteLength,
delay_copy(path),
+ method,
matrix ? *matrix : SkMatrix::I());
}

Powered by Google App Engine
This is Rietveld 408576698