diff options
author | Doris Liu <tianliu@google.com> | 2015-11-11 14:31:13 -0800 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2015-11-11 17:54:52 -0800 |
commit | cdd23f9d45ea2974c3f295754b89f5462bdd2c0d (patch) | |
tree | 968297adf4c5e87183f29c15e5dabf7624230704 /libs/hwui/PathParser.h | |
parent | 3cc97f524af679d93c2d4a9e93720c09e1ec924c (diff) |
Add hooks in JNI to start using native path parsing
Change-Id: Iaa0d3c2c1936c248146ed7f186a13e8e79be818e
Diffstat (limited to 'libs/hwui/PathParser.h')
-rw-r--r-- | libs/hwui/PathParser.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 <jni.h> #include <android/log.h> +#include <cutils/compiler.h> 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); }; |