• Home
  • Raw
  • Download

Lines Matching refs:atom

148 static void add_white(SkRandom* rand, SkString* atom) {  in add_white()  argument
150 atom->append(" "); in add_white()
157 atom->append(&gWhiteSpace[index], 1); in add_white()
162 static void add_comma(SkRandom* rand, SkString* atom) { in add_comma() argument
164 atom->append(","); in add_comma()
167 size_t count = atom->size(); in add_comma()
168 add_white(rand, atom); in add_comma()
170 atom->append(","); in add_comma()
173 add_white(rand, atom); in add_comma()
174 } while (count == atom->size()); in add_comma()
177 static void add_some_white(SkRandom* rand, SkString* atom) { in add_some_white() argument
178 size_t count = atom->size(); in add_some_white()
180 add_white(rand, atom); in add_some_white()
181 } while (count == atom->size()); in add_some_white()
185 SkString atom; in make_random_svg_path() local
188 gEasy ? atom.append("\n") : add_white(rand, &atom); in make_random_svg_path()
190 atom.append(&symbol, 1); in make_random_svg_path()
195 add_white(rand, &atom); in make_random_svg_path()
196 atom.appendScalar(coord); in make_random_svg_path()
198 add_comma(rand, &atom); in make_random_svg_path()
200 add_some_white(rand, &atom); in make_random_svg_path()
203 atom.appendScalar(rand->nextRangeF(-720, 720)); in make_random_svg_path()
204 add_comma(rand, &atom); in make_random_svg_path()
205 atom.appendU32(rand->nextRangeU(0, 1)); in make_random_svg_path()
206 add_comma(rand, &atom); in make_random_svg_path()
207 atom.appendU32(rand->nextRangeU(0, 1)); in make_random_svg_path()
208 add_comma(rand, &atom); in make_random_svg_path()
212 return atom; in make_random_svg_path()