diff options
Diffstat (limited to 'libs/hwui/PathParser.h')
-rw-r--r-- | libs/hwui/PathParser.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/libs/hwui/PathParser.h b/libs/hwui/PathParser.h index d30bb0f1b973..a9c1e60dae2e 100644 --- a/libs/hwui/PathParser.h +++ b/libs/hwui/PathParser.h @@ -23,17 +23,25 @@ #include <android/log.h> #include <cutils/compiler.h> +#include <string> + namespace android { namespace uirenderer { + class PathParser { public: + struct ANDROID_API ParseResult { + bool failureOccurred = false; + std::string failureMessage; + }; /** * 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); + ANDROID_API static void parseStringForSkPath(SkPath* outPath, ParseResult* result, + const char* pathStr, size_t strLength); + static void getPathDataFromString(PathData* outData, ParseResult* result, + const char* pathStr, size_t strLength); static void dump(const PathData& data); }; |