Index: src/gpu/GrAuditTrail.cpp |
diff --git a/src/gpu/GrAuditTrail.cpp b/src/gpu/GrAuditTrail.cpp |
index 3c29d5647d96d16137b6af10618f70ded769f70e..5a62a357946cb6ab1be0de4f6e96d250436b72cc 100644 |
--- a/src/gpu/GrAuditTrail.cpp |
+++ b/src/gpu/GrAuditTrail.cpp |
@@ -10,7 +10,7 @@ |
SkString GrAuditTrail::toJson() const { |
SkString json; |
json.append("{\n"); |
- json.append("Ops: [\n"); |
+ json.append("\"Ops\": [\n"); |
for (int i = 0; i < fOps.count(); i++) { |
json.append(fOps[i].toJson()); |
if (i < fOps.count() - 1) { |
@@ -25,7 +25,7 @@ SkString GrAuditTrail::toJson() const { |
SkString GrAuditTrail::Op::toJson() const { |
SkString json; |
json.append("{\n"); |
- json.appendf("%s\n", fName.c_str()); |
+ json.appendf("\"Name\": \"%s\"\n", fName.c_str()); |
json.append("}\n"); |
return json; |
} |