27class OffsetPathsAdapter final :
public DiscardableAdapterBase<OffsetPathsAdapter,
31 const AnimationBuilder& abuilder,
40 const auto join = ParseDefault<int>(joffset[
"lj"], 1) - 1;
41 this->node()->setJoin(gJoinMap[SkTPin<int>(
join, 0,
std::size(gJoinMap) - 1)]);
43 this->bind(abuilder, joffset[
"a" ], fAmount);
48 void onSync()
override {
49 this->node()->setOffset(fAmount);
56 using INHERITED = DiscardableAdapterBase<OffsetPathsAdapter, sksg::OffsetEffect>;
64 std::vector<sk_sp<sksg::GeometryNode>> offsetted;
65 offsetted.reserve(geos.size());
67 for (
auto& g : geos) {
69 (jround, *abuilder, std::move(g)));
#define INHERITED(method,...)
@ kMiter_Join
extends to miter limit
@ kBevel_Join
connects outside edges
void attachDiscardableAdapter(sk_sp< T > adapter) const
static std::vector< sk_sp< sksg::GeometryNode > > AttachOffsetGeometryEffect(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)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
static SkString join(const CommandLineFlags::StringArray &)