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

Unified Diff: src/core/SkBitmapDevice.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/SkBitmapDevice.cpp
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp
index 1f17e6fac12d30212f62819c75cd6fa47b6986ea..e765588168de3c421b3fcdf56d8d000c85a591e2 100644
--- a/src/core/SkBitmapDevice.cpp
+++ b/src/core/SkBitmapDevice.cpp
@@ -331,9 +331,10 @@ void SkBitmapDevice::drawPosText(const SkDraw& draw, const void* text, size_t le
void SkBitmapDevice::drawTextOnPath(const SkDraw& draw, const void* text,
size_t len, const SkPath& path,
- const SkMatrix* matrix,
+ const SkMatrix* matrix, SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM
const SkPaint& paint) {
- draw.drawTextOnPath((const char*)text, len, path, matrix, paint);
+ SK_SUPPORT_LEGACY_DRAWTEXTONPATH_DEFAULT_METHOD
+ draw.drawTextOnPath((const char*)text, len, path, matrix, method, paint);
}
void SkBitmapDevice::drawVertices(const SkDraw& draw, SkCanvas::VertexMode vmode,

Powered by Google App Engine
This is Rietveld 408576698