23class PathAdapter final :
public DiscardableAdapterBase<PathAdapter, sksg::Path> {
25 PathAdapter(
const skjson::Value& jpath,
const AnimationBuilder& abuilder)
27 this->bind(abuilder, jpath,
fShape);
31 void onSync()
override {
32 const auto& path_node = this->node();
37 path.setFillType(path_node->getFillType());
38 path.setIsVolatile(!this->isStatic());
40 path_node->setPath(
path);
45 using INHERITED = DiscardableAdapterBase<PathAdapter, sksg::Path>;
51 return this->attachDiscardableAdapter<PathAdapter>(jpath, *
this);
#define INHERITED(method,...)
sk_sp< sksg::Path > attachPath(const skjson::Value &) const
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path