diff options
author | Doris Liu <tianliu@google.com> | 2015-11-16 22:48:34 -0800 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2015-11-18 13:38:23 -0800 |
commit | 804618d0863a5d8ad1b08a846bd5319be864a1cb (patch) | |
tree | 3a5006a5d4319373d7b02796291a608e9320a7c3 /libs/hwui/PathParser.cpp | |
parent | 0fe13b1f7001f5e2f23062a97140784258f3423e (diff) |
VectorDrawable native rendering - Step 2 of MANY
Introduced PathData in Java, which is effectively a thin layer around the
native instance. PathData holds the verbs and points which is being used
in path morphing/interpolation. The verbs and points can be interpreted
into skia path commands, which is now done in native and therefore saves
a handful of JNI calls during path creation.
Removed the old PathDataNode mechanism and changed the PathEvaluator
to use PathData instead.
Also added tests and a microbench. Also ran CTS tests for VectorDrawable
and AnimatedVectorDrawable, and passed all of the existing tests.
Change-Id: Ia166f5172ff031fe18b154327967f911a62caec1
Diffstat (limited to 'libs/hwui/PathParser.cpp')
-rw-r--r-- | libs/hwui/PathParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/PathParser.cpp b/libs/hwui/PathParser.cpp index 35230fff279e..4e9ac9c7f723 100644 --- a/libs/hwui/PathParser.cpp +++ b/libs/hwui/PathParser.cpp @@ -221,7 +221,7 @@ void PathParser::parseStringForSkPath(SkPath* skPath, ParseResult* result, const result->failureMessage = "No verbs found in the string for pathData"; return; } - VectorDrawablePath::verbsToPath(skPath, &pathData); + VectorDrawableUtils::verbsToPath(skPath, pathData); return; } |