blob: 0d2e050bf3c09017f7c2bba7ebbbffa228d2f2ea [file] [log] [blame]
Mike Reed0fdc53f2018-08-27 13:00:37 -04001/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkTextOnPath_DEFINED
9#define SkTextOnPath_DEFINED
10
11#include "SkTypes.h"
12
13class SkCanvas;
14class SkMatrix;
15class SkPath;
16
17void SkVisitTextOnPath(const void* text, size_t byteLength, const SkPaint& paint,
18 const SkPath& follow, const SkMatrix* matrix,
19 const std::function<void(const SkPath&)>& visitor);
20
21void SkDrawTextOnPath(const void* text, size_t byteLength, const SkPaint& paint,
22 const SkPath& follow, const SkMatrix* matrix, SkCanvas* canvas);
23
24#endif
25