Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: src/gpu/GrAuditTrail.cpp

Issue 1565113004: Change to wire up opnames in SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@audittrail-initial
Patch Set: add a bunch of macros to interact with GrAuditTrail Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/private/GrAuditTrail.h ('k') | src/gpu/GrTracing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « include/private/GrAuditTrail.h ('k') | src/gpu/GrTracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698