25class RoundCornersAdapter final :
public DiscardableAdapterBase<RoundCornersAdapter,
29 const AnimationBuilder& abuilder,
32 this->bind(abuilder, jround[
"r"], fRadius);
36 void onSync()
override {
37 this->node()->setRadius(fRadius);
42 using INHERITED = DiscardableAdapterBase<RoundCornersAdapter, sksg::RoundEffect>;
50 std::vector<sk_sp<sksg::GeometryNode>> rounded;
51 rounded.reserve(geos.size());
53 for (
auto& g : geos) {
56 (jround, *abuilder, std::move(g)));
#define INHERITED(method,...)
void attachDiscardableAdapter(sk_sp< T > adapter) const
static std::vector< sk_sp< sksg::GeometryNode > > AttachRoundGeometryEffect(const skjson::ObjectValue &, const AnimationBuilder *, std::vector< sk_sp< sksg::GeometryNode > > &&)
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)