Home
last modified time | relevance | path

Searched refs:ParseDefault (Results 1 – 25 of 30) sorted by relevance

12

/third_party/skia/modules/skottie/src/text/
DTextValue.cpp41 v->fLineShift = ParseDefault((*jtxt)["ls"], 0.0f); in Parse()
48 v->fHAlign = gAlignMap[std::min<size_t>(ParseDefault<size_t>((*jtxt)["j"], 0), in Parse()
54 v->fBox.setWH(ParseDefault<SkScalar>((*jsz)[0], 0), in Parse()
55 ParseDefault<SkScalar>((*jsz)[1], 0)); in Parse()
62 v->fBox.offset(ParseDefault<SkScalar>((*jps)[0], 0), in Parse()
63 ParseDefault<SkScalar>((*jps)[1], 0)); in Parse()
73 v->fResize = gResizeMap[std::min(std::max(ParseDefault<size_t>((*jtxt)[ "rs"], 0), in Parse()
74 ParseDefault<size_t>((*jtxt)["sk_rs"], 0)), in Parse()
78 v->fMinTextSize = ParseDefault<SkScalar>((*jtxt)["mf"], 0.0f); in Parse()
79 v->fMaxTextSize = ParseDefault<SkScalar>((*jtxt)["xf"], std::numeric_limits<float>::max()); in Parse()
[all …]
DRangeSelector.cpp29 const auto idx = ParseDefault<int>(jenum, 1); in ParseEnum()
248 const auto type = ParseDefault<int>((*jrange)["t"], kRange_SelectorType); in Make()
/third_party/skia/modules/skottie/src/
DComposition.cpp24 const auto refId = ParseDefault<SkString>(jlayer["refId"], SkString()); in ScopedAssetRef()
55 fMotionBlurSamples = std::min(ParseDefault<size_t>((*jmb)["spf"], 1ul), in CompositionBuilder()
57 fMotionBlurAngle = SkTPin(ParseDefault((*jmb)["sa"], 0.0f), 0.0f, 720.0f); in CompositionBuilder()
58 fMotionBlurPhase = SkTPin(ParseDefault((*jmb)["sp"], 0.0f), -360.0f, 360.0f); in CompositionBuilder()
93 } else if (ParseDefault<int>(jcomp["ddd"], 0)) { in CompositionBuilder()
DLayer.cpp175 auto mask_inverted = ParseDefault<bool>((*m)["inv"], false); in AttachMask()
307 , fIndex (ParseDefault<int>(jlayer["ind" ], -1)) in LayerBuilder()
308 , fParentIndex(ParseDefault<int>(jlayer["parent"], -1)) in LayerBuilder()
309 , fType (ParseDefault<int>(jlayer["ty" ], -1)) in LayerBuilder()
310 , fAutoOrient (ParseDefault<int>(jlayer["ao" ], 0)) in LayerBuilder()
312 ParseDefault<float>(jlayer["ip"], 0.0f), in LayerBuilder()
313 ParseDefault<float>(jlayer["op"], 0.0f)} in LayerBuilder()
316 if (this->isCamera() || ParseDefault<int>(jlayer["ddd"], 0)) {
407 && ParseDefault(fJlayer["mb"], false); in hasMotionBlur()
514 if (ParseDefault<bool>(fJlayer["hd"], false)) { in buildRenderTree()
[all …]
DSkottie.cpp117 const auto bm_index = ParseDefault<size_t>(jobject["bm"], 0); in GetBlendMode()
205 fAssets.set(ParseDefault<SkString>((*asset)["id"], SkString()), { asset, false }); in parseAssets()
222 const auto time = ParseDefault((*m)["tm"], -1.0f), in dispatchMarkers()
223 duration = ParseDefault((*m)["dr"], -1.0f); in dispatchMarkers()
397 const auto version = ParseDefault<SkString>(json["v"], SkString()); in make()
398 const auto size = SkSize::Make(ParseDefault<float>(json["w"], 0.0f), in make()
399 ParseDefault<float>(json["h"], 0.0f)); in make()
400 const auto fps = ParseDefault<float>(json["fr"], -1.0f), in make()
401 inPoint = ParseDefault<float>(json["ip"], 0.0f), in make()
402 outPoint = std::max(ParseDefault<float>(json["op"], SK_ScalarMax), inPoint), in make()
DSkottieJson.h24 T ParseDefault(const skjson::Value& v, const T& defaultValue) { in ParseDefault() function
/third_party/skia/modules/skottie/src/layers/
DPrecompLayer.cpp171 const auto start_time = ParseDefault<float>(jlayer["st"], 0.0f), in attachPrecompLayer()
172 stretch_time = ParseDefault<float>(jlayer["sr"], 1.0f); in attachPrecompLayer()
178 layer_info->fSize = SkSize::Make(ParseDefault<float>(jlayer["w"], 0.0f), in attachPrecompLayer()
179 ParseDefault<float>(jlayer["h"], 0.0f)); in attachPrecompLayer()
DSolidLayer.cpp22 layer_info->fSize = SkSize::Make(ParseDefault<float>(jlayer["sw"], 0.0f), in attachSolidLayer()
23 ParseDefault<float>(jlayer["sh"], 0.0f)); in attachSolidLayer()
DFootageLayer.cpp99 const auto size = SkISize::Make(ParseDefault<int>(jimage["w"], 0), in loadFootageAsset()
100 ParseDefault<int>(jimage["h"], 0)); in loadFootageAsset()
DTextLayer.cpp230 ParseDefault((*jfont)["ascent"] , 0.0f), in parseFonts()
373 const auto advance = ParseDefault((*jchar)["w"], 0.0f); in resolveEmbeddedTypefaces()
/third_party/skia/modules/skottie/src/layers/shapelayer/
DFillStroke.cpp43 this->node()->setStrokeMiter(ParseDefault<SkScalar>(jpaint["ml"], 4.0f)); in FillStrokeAdapter()
51 gJoins[std::min<size_t>(ParseDefault<size_t>(jpaint["lj"], 1) - 1, in FillStrokeAdapter()
60 gCaps[std::min<size_t>(ParseDefault<size_t>(jpaint["lc"], 1) - 1, in FillStrokeAdapter()
DGradient.cpp30 const auto stopCount = ParseDefault<int>((*jstops)["p"], -1); in Make()
34 const auto type = (ParseDefault<int>(jgrad["t"], 1) == 1) ? Type::kLinear in Make()
DEllipse.cpp26 this->node()->setDirection(ParseDefault(jellipse["d"], -1) == 3 ? SkPathDirection::kCCW in EllipseGeometryAdapter()
DRectangle.cpp26 this->node()->setDirection(ParseDefault(jrect["d"], -1) == 3 ? SkPathDirection::kCCW in RectangleGeometryAdapter()
DOffsetPaths.cpp33 const auto join = ParseDefault<int>(joffset["lj"], 1) - 1; in OffsetPathsAdapter()
DMergePaths.cpp41 const auto mode = gModes[std::min<size_t>(ParseDefault<size_t>(jmerge["mm"], 1) - 1, in AttachMergeGeometryEffect()
DTrimPaths.cpp83 const auto mode = gModes[std::min<size_t>(ParseDefault<size_t>(jtrim["m"], 1) - 1, in AttachTrimGeometryEffect()
DPolystar.cpp92 const auto type = ParseDefault<size_t>(jstar["sy"], 0) - 1; in AttachPolystarGeometry()
/third_party/skia/modules/skottie/src/animator/
DVec2KeyframeAnimator.cpp219 fTi = ParseDefault<SkV2>(jkf["ti"], {0,0}); in parseKFValue()
220 fTo = ParseDefault<SkV2>(jkf["to"], {0,0}); in parseKFValue()
251 if (!ParseDefault<bool>((*jprop)["s"], false)) { in bindAutoOrientable()
DAnimator.cpp79 if (!ParseDefault<bool>(jpropA, false)) { in bindImpl()
DShapeKeyframeAnimator.cpp111 data[data_len - 1] = ParseDefault<bool>((*jshape)["c"], false); in parse_encoding_data()
DKeyframeAnimator.cpp199 if (ParseDefault(jkf["h"], false)) { in parseMapping()
/third_party/skia/modules/skottie/src/effects/
DEffects.cpp89 switch (ParseDefault<int>(jeffect["ty"], -1)) { in findBuilder()
158 ParseDefault<size_t>((*jstyle)["ty"], std::numeric_limits<size_t>::max()); in attachStyles()
/third_party/ninja/src/
Dmanifest_parser.h62 bool ParseDefault(std::string* err);
Dmanifest_parser.cc55 if (!ParseDefault(err)) in Parse()
184 bool ManifestParser::ParseDefault(string* err) { in ParseDefault() function in ManifestParser

12