Home | History | Annotate | Download | only in tools

Lines Matching defs:atom

32 static void add_white(SkRandom* rand, SkString* atom) {
34 atom->append(" ");
41 atom->append(&gWhiteSpace[index], 1);
46 static void add_comma(SkRandom* rand, SkString* atom) {
48 atom->append(",");
51 size_t count = atom->size();
52 add_white(rand, atom);
54 atom->append(",");
57 add_white(rand, atom);
58 } while (count == atom->size());
61 static void add_some_white(SkRandom* rand, SkString* atom) {
62 size_t count = atom->size();
64 add_white(rand, atom);
65 } while (count == atom->size());
69 SkString atom;
72 gEasy ? atom.append("\n") : add_white(rand, &atom);
74 atom.append(&symbol, 1);
79 add_white(rand, &atom);
80 atom.appendScalar(coord);
82 add_comma(rand, &atom);
84 add_some_white(rand, &atom);
87 atom.appendScalar(rand->nextRangeF(-720, 720));
88 add_comma(rand, &atom);
89 atom.appendU32(rand->nextRangeU(0, 1));
90 add_comma(rand, &atom);
91 atom.appendU32(rand->nextRangeU(0, 1));
92 add_comma(rand, &atom);
96 return atom;