Home | History | Annotate | Download | only in src

Lines Matching refs:Mode

265 sk_sp<sksg::Merge> Merge(std::vector<sk_sp<sksg::GeometryNode>>&& geos, sksg::Merge::Mode mode) {
271 {std::move(geo), merge_recs.empty() ? sksg::Merge::Mode::kMerge : mode});
280 static constexpr sksg::Merge::Mode gModes[] = {
281 sksg::Merge::Mode::kMerge, // "mm": 1
282 sksg::Merge::Mode::kUnion, // "mm": 2
283 sksg::Merge::Mode::kDifference, // "mm": 3
284 sksg::Merge::Mode::kIntersect, // "mm": 4
285 sksg::Merge::Mode::kXOR , // "mm": 5
288 const auto mode = gModes[SkTMin<size_t>(ParseDefault<size_t>(jmerge["mm"], 1) - 1,
292 merged.push_back(Merge(std::move(geos), mode));
301 enum class Mode {
304 } gModes[] = { Mode::kMerged, Mode::kSeparate };
306 const auto mode = gModes[SkTMin<size_t>(ParseDefault<size_t>(jtrim["m"], 1) - 1,
310 if (mode == Mode::kMerged) {
311 inputs.push_back(Merge(std::move(geos), sksg::Merge::Mode::kMerge));
646 ? Merge(std::move(drawGeos), sksg::Merge::Mode::kMerge)