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

Unified Diff: src/pdf/SkPDFDeviceFlattener.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/SkPDFDeviceFlattener.cpp
diff --git a/src/pdf/SkPDFDeviceFlattener.cpp b/src/pdf/SkPDFDeviceFlattener.cpp
index 477486413a2fb2ed8a41b63c888379c2d1742900..bf4a275d9d0efaf86c16c0a22aa6b86de8e86336 100644
--- a/src/pdf/SkPDFDeviceFlattener.cpp
+++ b/src/pdf/SkPDFDeviceFlattener.cpp
@@ -134,12 +134,15 @@ void SkPDFDeviceFlattener::drawPosText(const SkDraw& d, const void* text, size_t
void SkPDFDeviceFlattener::drawTextOnPath(const SkDraw& d, const void* text, size_t len,
const SkPath& path, const SkMatrix* matrix,
+ SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM
const SkPaint& paint) {
+ SK_SUPPORT_LEGACY_DRAWTEXTONPATH_DEFAULT_METHOD
if (mustPathText(d, paint) || (matrix && matrix->hasPerspective())) {
- d.drawTextOnPath((const char*)text, len, path, matrix, paint);
+ d.drawTextOnPath((const char*)text, len, path, matrix, method, paint);
return;
}
- INHERITED::drawTextOnPath(d, text, len, path, matrix, paint);
+ INHERITED::drawTextOnPath(d, text, len, path, matrix,
+ SK_SUPPORT_LEGACY_DRAWTEXTONPATH_ARG paint);
}
bool SkPDFDeviceFlattener::mustFlatten(const SkDraw& d) const {

Powered by Google App Engine
This is Rietveld 408576698