don't use paint's gettextpath

Bug: skia:
Change-Id: I8ad0b924195f46a29b095e85a8c0573912f0045d
Reviewed-on: https://skia-review.googlesource.com/c/179986
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Auto-Submit: Mike Reed <reed@google.com>
diff --git a/include/utils/SkTextUtils.h b/include/utils/SkTextUtils.h
index e5919f4..63d8adf 100644
--- a/include/utils/SkTextUtils.h
+++ b/include/utils/SkTextUtils.h
@@ -13,6 +13,8 @@
 #include "SkPaint.h"
 #include "SkString.h"
 
+class SkPath;
+
 class SkTextUtils {
 public:
     enum Align {
@@ -49,6 +51,9 @@
         DrawText(canvas, str.c_str(), str.size(), x, y, paint, align);
     }
 #endif
+
+    static void GetPath(const void* text, size_t length, SkTextEncoding, SkScalar x, SkScalar y,
+                        const SkFont&, SkPath*);
 };
 
 #endif