#include <ShapeLayer.h>
|
static sk_sp< sksg::Merge > | MergeGeometry (std::vector< sk_sp< sksg::GeometryNode > > &&, sksg::Merge::Mode) |
|
static sk_sp< sksg::GeometryNode > | AttachPathGeometry (const skjson::ObjectValue &, const AnimationBuilder *) |
|
static sk_sp< sksg::GeometryNode > | AttachRRectGeometry (const skjson::ObjectValue &, const AnimationBuilder *) |
|
static sk_sp< sksg::GeometryNode > | AttachEllipseGeometry (const skjson::ObjectValue &, const AnimationBuilder *) |
|
static sk_sp< sksg::GeometryNode > | AttachPolystarGeometry (const skjson::ObjectValue &, const AnimationBuilder *) |
|
static sk_sp< sksg::PaintNode > | AttachColorFill (const skjson::ObjectValue &, const AnimationBuilder *) |
|
static sk_sp< sksg::PaintNode > | AttachColorStroke (const skjson::ObjectValue &, const AnimationBuilder *) |
|
static sk_sp< sksg::PaintNode > | AttachGradientFill (const skjson::ObjectValue &, const AnimationBuilder *) |
|
static sk_sp< sksg::PaintNode > | AttachGradientStroke (const skjson::ObjectValue &, const AnimationBuilder *) |
|
static std::vector< sk_sp< sksg::GeometryNode > > | AttachMergeGeometryEffect (const skjson::ObjectValue &, const AnimationBuilder *, std::vector< sk_sp< sksg::GeometryNode > > &&) |
|
static std::vector< sk_sp< sksg::GeometryNode > > | AttachTrimGeometryEffect (const skjson::ObjectValue &, const AnimationBuilder *, std::vector< sk_sp< sksg::GeometryNode > > &&) |
|
static std::vector< sk_sp< sksg::GeometryNode > > | AttachRoundGeometryEffect (const skjson::ObjectValue &, const AnimationBuilder *, std::vector< sk_sp< sksg::GeometryNode > > &&) |
|
static std::vector< sk_sp< sksg::GeometryNode > > | AttachOffsetGeometryEffect (const skjson::ObjectValue &, const AnimationBuilder *, std::vector< sk_sp< sksg::GeometryNode > > &&) |
|
static std::vector< sk_sp< sksg::GeometryNode > > | AttachPuckerBloatGeometryEffect (const skjson::ObjectValue &, const AnimationBuilder *, std::vector< sk_sp< sksg::GeometryNode > > &&) |
|
static std::vector< sk_sp< sksg::GeometryNode > > | AdjustStrokeGeometry (const skjson::ObjectValue &, const AnimationBuilder *, std::vector< sk_sp< sksg::GeometryNode > > &&) |
|
static std::vector< sk_sp< sksg::RenderNode > > | AttachRepeaterDrawEffect (const skjson::ObjectValue &, const AnimationBuilder *, std::vector< sk_sp< sksg::RenderNode > > &&) |
|
Definition at line 37 of file ShapeLayer.h.
◆ AdjustStrokeGeometry()
Definition at line 181 of file FillStroke.cpp.
184 {
185
187 if (jdash && jdash->
size() > 1) {
188 for (
size_t i = 0;
i < geos.size(); ++
i) {
189 geos[
i] = abuilder->attachDiscardableAdapter<DashAdapter>(
190 *jdash, *abuilder, std::move(geos[
i]));
191 }
192 }
193
194 return std::move(geos);
195}
◆ AttachColorFill()
Definition at line 165 of file FillStroke.cpp.
166 {
168 auto color_paint = AttachFill(jpaint, abuilder, color_node);
169 abuilder->dispatchColorProperty(color_node);
170 return color_paint;
171}
constexpr SkColor SK_ColorBLACK
static sk_sp< Color > Make(SkColor c)
◆ AttachColorStroke()
Definition at line 173 of file FillStroke.cpp.
174 {
176 auto color_paint = AttachStroke(jpaint, abuilder, color_node);
177 abuilder->dispatchColorProperty(color_node);
178 return color_paint;
179}
◆ AttachEllipseGeometry()
Definition at line 57 of file Ellipse.cpp.
58 {
59 return abuilder->attachDiscardableAdapter<EllipseGeometryAdapter>(jellipse, abuilder);
60}
◆ AttachGradientFill()
Definition at line 250 of file Gradient.cpp.
251 {
253
254 return adapter
256 : nullptr;
257}
static sk_sp< ShaderPaint > Make(sk_sp< Shader >)
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)
◆ AttachGradientStroke()
Definition at line 259 of file Gradient.cpp.
260 {
262
263 return adapter
265 : nullptr;
266}
◆ AttachMergeGeometryEffect()
Definition at line 37 of file MergePaths.cpp.
39 {
46 };
47
48 const auto mode =
gModes[std::min<size_t>(ParseDefault<size_t>(jmerge[
"mm"], 1) - 1,
50
51 std::vector<sk_sp<sksg::GeometryNode>> merged;
53
54 return merged;
55}
constexpr SkBlendMode gModes[]
static sk_sp< sksg::Merge > MergeGeometry(std::vector< sk_sp< sksg::GeometryNode > > &&, sksg::Merge::Mode)
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 mode
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
◆ AttachOffsetGeometryEffect()
Definition at line 61 of file OffsetPaths.cpp.
63 {
64 std::vector<sk_sp<sksg::GeometryNode>> offsetted;
65 offsetted.reserve(geos.size());
66
67 for (auto& g : geos) {
68 offsetted.push_back(abuilder->attachDiscardableAdapter<OffsetPathsAdapter>
69 (jround, *abuilder, std::move(g)));
70 }
71
72 return offsetted;
73}
◆ AttachPathGeometry()
Definition at line 153 of file ShapeLayer.cpp.
154 {
155 return abuilder->attachPath(jpath["ks"]);
156}
◆ AttachPolystarGeometry()
Definition at line 101 of file Polystar.cpp.
102 {
104 PolystarGeometryAdapter::Type::kStar,
105 PolystarGeometryAdapter::Type::kPoly,
106 };
107
108 const auto type = ParseDefault<size_t>(jstar[
"sy"], 0) - 1;
111 return nullptr;
112 }
113
114 return abuilder->attachDiscardableAdapter<PolystarGeometryAdapter>
115 (jstar, abuilder, gTypes[
type]);
116}
◆ AttachPuckerBloatGeometryEffect()
Definition at line 165 of file PuckerBloat.cpp.
167 {
168 std::vector<sk_sp<sksg::GeometryNode>> bloated;
169 bloated.reserve(geos.size());
170
171 for (auto& g : geos) {
172 bloated.push_back(abuilder->attachDiscardableAdapter<PuckerBloatAdapter>
173 (jround, *abuilder, std::move(g)));
174 }
175
176 return bloated;
177}
◆ AttachRepeaterDrawEffect()
Definition at line 184 of file Repeater.cpp.
187 {
188 std::vector<sk_sp<sksg::RenderNode>> repeater_draws;
189
191
193
194 repeater_draws.reserve(1);
195 repeater_draws.push_back(
196 abuilder->attachDiscardableAdapter<RepeaterAdapter>(jrepeater,
197 *jtransform,
198 *abuilder,
199 std::move(draws)));
200 } else {
201 repeater_draws = std::move(draws);
202 }
203
204 return repeater_draws;
205}
◆ AttachRoundGeometryEffect()
Definition at line 47 of file RoundCorners.cpp.
49 {
50 std::vector<sk_sp<sksg::GeometryNode>> rounded;
51 rounded.reserve(geos.size());
52
53 for (auto& g : geos) {
54 rounded.push_back(
55 abuilder->attachDiscardableAdapter<RoundCornersAdapter>
56 (jround, *abuilder, std::move(g)));
57 }
58
59 return rounded;
60}
◆ AttachRRectGeometry()
Definition at line 59 of file Rectangle.cpp.
60 {
61 return abuilder->attachDiscardableAdapter<RectangleGeometryAdapter>(jrect, abuilder);
62}
◆ AttachTrimGeometryEffect()
Definition at line 81 of file TrimPaths.cpp.
84 {
85
87 kParallel,
88 kSerial,
89 }
gModes[] = { Mode::kParallel, Mode::kSerial};
90
91 const auto mode =
gModes[std::min<size_t>(ParseDefault<size_t>(jtrim[
"m"], 1) - 1,
93
94 std::vector<sk_sp<sksg::GeometryNode>>
inputs;
95 if (
mode == Mode::kSerial) {
97 } else {
99 }
100
101 std::vector<sk_sp<sksg::GeometryNode>> trimmed;
102 trimmed.reserve(
inputs.size());
103
105 trimmed.push_back(
106 abuilder->attachDiscardableAdapter<TrimEffectAdapter>(jtrim, *abuilder,
i));
107 }
108
109 return trimmed;
110}
◆ MergeGeometry()
Definition at line 24 of file MergePaths.cpp.
25 {
26 std::vector<sksg::Merge::Rec> merge_recs;
27 merge_recs.reserve(geos.size());
28
29 for (auto& geo : geos) {
30 merge_recs.push_back(
32 }
33
35}
static sk_sp< Merge > Make(std::vector< Rec > &&recs)
The documentation for this class was generated from the following files:
- third_party/skia/modules/skottie/src/layers/shapelayer/ShapeLayer.h
- third_party/skia/modules/skottie/src/layers/shapelayer/Ellipse.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/FillStroke.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/Gradient.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/MergePaths.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/OffsetPaths.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/Polystar.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/PuckerBloat.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/Rectangle.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/Repeater.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/RoundCorners.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/ShapeLayer.cpp
- third_party/skia/modules/skottie/src/layers/shapelayer/TrimPaths.cpp