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

Unified Diff: src/pdf/SkPDFDevice.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/pdf/SkPDFDevice.cpp
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index c3ee262db34ab3b6f149ba98ee61a855e9cca886..75a56cbb4d25057a42015c4e1ec2ae60518e5067 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -1196,11 +1196,12 @@ void SkPDFDevice::drawPosText(const SkDraw& d, const void* text, size_t len,
void SkPDFDevice::drawTextOnPath(const SkDraw& d, const void* text, size_t len,
const SkPath& path, const SkMatrix* matrix,
- const SkPaint& paint) {
+ SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM const SkPaint& paint) {
if (d.fClip->isEmpty()) {
return;
}
- d.drawTextOnPath((const char*)text, len, path, matrix, paint);
+ SK_SUPPORT_LEGACY_DRAWTEXTONPATH_DEFAULT_METHOD
+ d.drawTextOnPath((const char*)text, len, path, matrix, method, paint);
}
void SkPDFDevice::drawVertices(const SkDraw& d, SkCanvas::VertexMode,

Powered by Google App Engine
This is Rietveld 408576698