OSDN Git Service

VectorDrawable native rendering - Step 1 of MANY
authorDoris Liu <tianliu@google.com>
Wed, 4 Nov 2015 22:56:24 +0000 (14:56 -0800)
committerDoris Liu <tianliu@google.com>
Tue, 10 Nov 2015 23:46:06 +0000 (15:46 -0800)
commit30bcf69df9cfae40b621335958656cb0e4afd7d5
treed4cc05d731a54d19775a0fd5245d0764a5156bcf
parent429c5b93ff66e82fa3fd65475489fde133c66002
VectorDrawable native rendering - Step 1 of MANY

Implement path parsing from string to skia path in native. The parsing
contains two main stages:
1) Parse string into a list of nodes that contains one operation (such
   as move) and a vector of floats as params for that operation.
2) Interpret the operations defined in the nodes into SkPath operations,
   and create a skia path

Also provided unit test for parsing a string path into a list of nodes,
and then to a skia path.

Change-Id: I0ce13df5e3bb90987dcdc80fe8b039af175ad2e2
libs/hwui/Android.mk
libs/hwui/PathParser.cpp [new file with mode: 0644]
libs/hwui/PathParser.h [new file with mode: 0644]
libs/hwui/VectorDrawablePath.cpp [new file with mode: 0644]
libs/hwui/VectorDrawablePath.h [new file with mode: 0644]
libs/hwui/unit_tests/PathParserTests.cpp [new file with mode: 0644]
libs/hwui/utils/FatVector.h