| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
#ifndef ANDROID_HWUI_VECTORDRAWABLE_UTILS_H |
| 18 |
#define ANDROID_HWUI_VECTORDRAWABLE_UTILS_H |
| 19 |
|
| 20 |
#include "VectorDrawable.h" |
| 21 |
|
| 22 |
#include <cutils/compiler.h> |
| 23 |
#include <vector> |
| 24 |
#include "SkPath.h" |
| 25 |
|
| 26 |
namespace android { |
| 27 |
namespace uirenderer { |
| 28 |
|
| 29 |
class VectorDrawableUtils { |
| 30 |
public: |
| 31 |
static bool canMorph(const PathData& morphFrom, const PathData& morphTo); |
| 32 |
static bool interpolatePathData(PathData* outData, const PathData& morphFrom, |
| 33 |
const PathData& morphTo, float fraction); |
| 34 |
static void verbsToPath(SkPath* outPath, const PathData& data); |
| 35 |
static void interpolatePaths(PathData* outPathData, const PathData& from, const PathData& to, |
| 36 |
float fraction); |
| 37 |
}; |
| 38 |
} |
| 39 |
} |
| 40 |
#endif |