Lines Matching full:alloc
62 Value pathToLottie(const SkPath& path, SkArenaAlloc& alloc) { in pathToLottie() argument
124 auto ptsToLottie = [](const std::vector<SkPoint> v, SkArenaAlloc& alloc) { in pathToLottie() argument
128 vec[i] = ArrayValue(fields, std::size(fields), alloc); in pathToLottie()
131 return ArrayValue(vec.data(), vec.size(), alloc); in pathToLottie()
137 { StringValue("v", alloc), ptsToLottie(contours[i].verts, alloc) }, in pathToLottie()
138 { StringValue("i", alloc), ptsToLottie(contours[i].in_tan, alloc) }, in pathToLottie()
139 { StringValue("o", alloc), ptsToLottie(contours[i].out_tan, alloc) }, in pathToLottie()
140 { StringValue("c", alloc), BoolValue (contours[i].closed) }, in pathToLottie()
144 { StringValue("a", alloc), NumberValue(0) }, in pathToLottie()
145 { StringValue("k", alloc), ObjectValue(fields_k, std::size(fields_k), alloc) }, in pathToLottie()
149 { StringValue("ty" , alloc), StringValue("sh", alloc) }, in pathToLottie()
150 { StringValue("hd" , alloc), BoolValue(false) }, in pathToLottie()
151 { StringValue("ind", alloc), NumberValue(SkToInt(i)) }, in pathToLottie()
152 { StringValue("ks" , alloc), ObjectValue(fields_ks, std::size(fields_ks), alloc) }, in pathToLottie()
153 { StringValue("mn" , alloc), StringValue("ADBE Vector Shape - Group" , alloc) }, in pathToLottie()
154 { StringValue("nm" , alloc), StringValue("_" , alloc) }, in pathToLottie()
157 jcontours[i] = ObjectValue(fields, std::size(fields), alloc); in pathToLottie()
161 { StringValue("ty" , alloc), StringValue("gr", alloc) }, in pathToLottie()
162 { StringValue("hd" , alloc), BoolValue(false) }, in pathToLottie()
163 { StringValue("bm" , alloc), NumberValue(0) }, in pathToLottie()
164 { StringValue("it" , alloc), ArrayValue(jcontours.data(), jcontours.size(), alloc) }, in pathToLottie()
165 { StringValue("mn" , alloc), StringValue("ADBE Vector Group" , alloc) }, in pathToLottie()
166 { StringValue("nm" , alloc), StringValue("_" , alloc) }, in pathToLottie()
169 const Value shape = ObjectValue(fields_sh, std::size(fields_sh), alloc); in pathToLottie()
171 { StringValue("shapes" , alloc), ArrayValue(&shape, 1, alloc) }, in pathToLottie()
174 return ObjectValue(fields_data, std::size(fields_data), alloc); in pathToLottie()
219 std::tuple<Value, Value> toLottie(SkArenaAlloc& alloc, const Value& orig_fonts) const { in toLottie() argument
247 orig_font->writable("fName", alloc) = in toLottie()
248 StringValue(font_name.c_str(), font_name.size(), alloc); in toLottie()
257 { StringValue("ch" , alloc), StringValue(glyphid_as_utf8, utf8_len, alloc)}, in toLottie()
258 { StringValue("fFamily", alloc), (*orig_font)["fFamily"] }, in toLottie()
259 { StringValue("style" , alloc), (*orig_font)["fStyle"] }, in toLottie()
260 { StringValue("size" , alloc), NumberValue(100) }, in toLottie()
261 { StringValue("w" , alloc), NumberValue(glyph.fWidth) }, in toLottie()
262 { StringValue("data" , alloc), pathToLottie(glyph.fPath, alloc) }, in toLottie()
265 chars.push_back(ObjectValue(fields, std::size(fields), alloc)); in toLottie()
270 { StringValue("list", alloc), ArrayValue(fonts.data(), fonts.size(), alloc) }, in toLottie()
272 return std::make_tuple(ObjectValue(fonts_fields, std::size(fonts_fields), alloc), in toLottie()
273 ArrayValue(chars.data(), chars.size(), alloc)); in toLottie()