textonpath util
Bug: skia:7554
Change-Id: Ifff3030f9d7be24146b5230bbf0e47f73000adfd
Reviewed-on: https://skia-review.googlesource.com/141460
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
diff --git a/include/utils/SkTextOnPath.h b/include/utils/SkTextOnPath.h
new file mode 100644
index 0000000..0d2e050
--- /dev/null
+++ b/include/utils/SkTextOnPath.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2018 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkTextOnPath_DEFINED
+#define SkTextOnPath_DEFINED
+
+#include "SkTypes.h"
+
+class SkCanvas;
+class SkMatrix;
+class SkPath;
+
+void SkVisitTextOnPath(const void* text, size_t byteLength, const SkPaint& paint,
+ const SkPath& follow, const SkMatrix* matrix,
+ const std::function<void(const SkPath&)>& visitor);
+
+void SkDrawTextOnPath(const void* text, size_t byteLength, const SkPaint& paint,
+ const SkPath& follow, const SkMatrix* matrix, SkCanvas* canvas);
+
+#endif
+