From cdd23f9d45ea2974c3f295754b89f5462bdd2c0d Mon Sep 17 00:00:00 2001 From: Doris Liu Date: Wed, 11 Nov 2015 14:31:13 -0800 Subject: Add hooks in JNI to start using native path parsing Change-Id: Iaa0d3c2c1936c248146ed7f186a13e8e79be818e --- libs/hwui/PathParser.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libs/hwui/PathParser.h') diff --git a/libs/hwui/PathParser.h b/libs/hwui/PathParser.h index 6dc7ee193197..d30bb0f1b973 100644 --- a/libs/hwui/PathParser.h +++ b/libs/hwui/PathParser.h @@ -21,13 +21,18 @@ #include #include +#include namespace android { namespace uirenderer { class PathParser { public: - static void parseStringForSkPath(SkPath* outPath, const char* pathStr, size_t strLength); + /** + * Parse the string literal and create a Skia Path. Return true on success. + */ + ANDROID_API static bool parseStringForSkPath(SkPath* outPath, const char* pathStr, + size_t strLength); static void getPathDataFromString(PathData* outData, const char* pathStr, size_t strLength); static void dump(const PathData& data); }; -- cgit v1.2.3-59-g8ed1b