aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/DumpRecord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/DumpRecord.cpp')
-rw-r--r--tools/DumpRecord.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/DumpRecord.cpp b/tools/DumpRecord.cpp
index e2662e758c..e7d76f0515 100644
--- a/tools/DumpRecord.cpp
+++ b/tools/DumpRecord.cpp
@@ -60,6 +60,21 @@ public:
++fIndent;
}
+ void print(const SkRecords::DrawPicture& command, double ns) {
+ this->printNameAndTime(command, ns);
+
+ if (auto bp = command.picture->asSkBigPicture()) {
+ ++fIndent;
+
+ const SkRecord& record = *bp->record();
+ for (int i = 0; i < record.count(); i++) {
+ record.visit<void>(i, *this);
+ }
+
+ --fIndent;
+ }
+ }
+
private:
template <typename T>
void printNameAndTime(const T& command, double ns) {