Lines Matching defs:const
24 static sk_sp<GradientAdapter> Make(const skjson::ObjectValue& jgrad,
25 const AnimationBuilder& abuilder) {
26 const skjson::ObjectValue* jstops = jgrad["g"];
30 const auto stopCount = ParseDefault<int>((*jstops)["p"], -1);
34 const auto type = (ParseDefault<int>(jgrad["t"], 1) == 1) ? Type::kLinear
46 const sk_sp<sksg::Gradient>& node() const { return fGradient; }
54 const skjson::ObjectValue& jgrad,
55 const skjson::ObjectValue& jstops,
56 const AnimationBuilder& abuilder)
66 const auto s_point = SkPoint{fStartPoint.x, fStartPoint.y},
103 const auto c_count = fStopCount,
114 const auto* c_rec = c_count > 0
115 ? reinterpret_cast<const ColorRec*>(fStops.data())
117 const auto* o_rec = o_count > 0
118 ? reinterpret_cast<const OpacityRec*>(fStops.data() + c_size)
120 const auto* c_end = c_rec + c_count;
121 const auto* o_end = o_rec + o_count;
138 const auto& cs = c_rec
144 const auto& os = o_rec
152 const auto c_pos = std::max(cs.t, current_stop.fPosition),
187 const T* next_rec(const T* rec, const T* end_rec) const {
196 const sk_sp<sksg::Gradient> fGradient;
197 const Type fType;
198 const size_t fStopCount;
207 sk_sp<sksg::PaintNode> ShapeBuilder::AttachGradientFill(const skjson::ObjectValue& jgrad,
208 const AnimationBuilder* abuilder) {
216 sk_sp<sksg::PaintNode> ShapeBuilder::AttachGradientStroke(const skjson::ObjectValue& jgrad,
217 const AnimationBuilder* abuilder) {