Lines Matching refs:fWriter
20 SkToJsonVisitor(SkJSONWriter& writer) : fWriter(writer) {} in SkToJsonVisitor()
24 fWriter.appendFloat(name, f); in visit()
27 fWriter.appendS32(name, i); in visit()
30 fWriter.appendBool(name, b); in visit()
36 fWriter.beginArray(name); in visit()
38 fWriter.appendString(line.c_str()); in visit()
40 fWriter.endArray(); in visit()
42 fWriter.appendString(name, s.c_str()); in visit()
46 fWriter.appendString(name, EnumToString(i, map, count)); in visit()
51 fWriter.beginObject(name, false); in visit()
52 fWriter.appendFloat("x", p.fX); in visit()
53 fWriter.appendFloat("y", p.fY); in visit()
54 fWriter.endObject(); in visit()
58 fWriter.beginArray(name, false); in visit()
59 fWriter.appendFloat(c.fR); in visit()
60 fWriter.appendFloat(c.fG); in visit()
61 fWriter.appendFloat(c.fB); in visit()
62 fWriter.appendFloat(c.fA); in visit()
63 fWriter.endArray(); in visit()
67 fWriter.appendString("Type", e ? e->getType()->fName : "Null"); in visit()
70 void enterObject(const char* name) override { fWriter.beginObject(name); } in enterObject()
71 void exitObject() override { fWriter.endObject(); } in exitObject()
74 fWriter.beginArray(name); in enterArray()
78 fWriter.endArray(); in exitArray()
83 SkJSONWriter& fWriter;