29class EllipseGeometryAdapter final :
30 public DiscardableAdapterBase<EllipseGeometryAdapter, sksg::RRect> {
33 const AnimationBuilder* abuilder) {
36 this->node()->setInitialPointIndex(1);
38 this->bind(*abuilder, jellipse[
"s"], fSize);
39 this->bind(*abuilder, jellipse[
"p"], fPosition);
43 void onSync()
override {
45 fPosition.y - fSize.y / 2,
static SkRRect MakeOval(const SkRect &oval)
void attachDiscardableAdapter(sk_sp< T > adapter) const
static sk_sp< sksg::GeometryNode > AttachEllipseGeometry(const skjson::ObjectValue &, const AnimationBuilder *)
Optional< SkRect > bounds
T ParseDefault(const skjson::Value &v, const T &defaultValue)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)