summaryrefslogtreecommitdiff
path: root/libs/hwui/PathParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/PathParser.h')
-rw-r--r--libs/hwui/PathParser.h7
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);
};