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

Unified Diff: src/gpu/GrAuditTrail.cpp

Issue 1581943004: Virtualize Frames in GrAuditTrail (Closed) Base URL: https://skia.googlesource.com/skia.git@audittrail-5-debugautoframes
Patch Set: tweaks 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
« include/private/GrAuditTrail.h ('K') | « include/private/GrAuditTrail.h ('k') | no next file » | 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 1113017b2d3e2e201f7e832e4df01c7e752c8d39..b2cde6a39c2cf05c6d4156fb2243795f2068a1e9 100644
--- a/src/gpu/GrAuditTrail.cpp
+++ b/src/gpu/GrAuditTrail.cpp
@@ -8,11 +8,12 @@
#include "GrAuditTrail.h"
template <class T>
-static void jsonify_tarray(SkString* json, const char* name, const SkTArray<T>& array) {
+static void jsonify_tarray(SkString* json, const char* name,
+ const SkTArray<SkAutoTDelete<T>, true>& array) {
if (array.count()) {
json->appendf("\"%s\": [", name);
for (int i = 0; i < array.count(); i++) {
- json->append(array[i].toJson());
+ json->append(array[i]->toJson());
if (i < array.count() - 1) {
json->append(",");
}
@@ -102,13 +103,12 @@ SkString GrAuditTrail::Frame::toJson() const {
SkString json;
json.append("{");
json.appendf("\"Name\": \"%s\",", fName);
- jsonify_tarray(&json, "Batches", fBatches);
jsonify_tarray(&json, "Frames", fChildren);
json.append("}");
return json;
}
-SkString GrAuditTrail::Frame::Batch::toJson() const {
+SkString GrAuditTrail::Batch::toJson() const {
SkString json;
json.append("{");
json.appendf("\"Name\": \"%s\",", fName);
« include/private/GrAuditTrail.h ('K') | « include/private/GrAuditTrail.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698