aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/DumpRecord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/DumpRecord.cpp')
-rw-r--r--tools/DumpRecord.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/DumpRecord.cpp b/tools/DumpRecord.cpp
index efaf0eb58e..51a9d1f4a6 100644
--- a/tools/DumpRecord.cpp
+++ b/tools/DumpRecord.cpp
@@ -75,6 +75,25 @@ public:
}
}
+#if 0
+ void print(const SkRecords::DrawAnnotation& command, double ns) {
+ int us = (int)(ns * 1e-3);
+ if (!fTimeWithCommand) {
+ printf("%6dus ", us);
+ }
+ printf("%*d ", fDigits, fIndex++);
+ for (int i = 0; i < fIndent; i++) {
+ printf(" ");
+ }
+ if (fTimeWithCommand) {
+ printf("%6dus ", us);
+ }
+ printf("DrawAnnotation [%g %g %g %g] %s\n",
+ command.rect.left(), command.rect.top(), command.rect.right(), command.rect.bottom(),
+ command.key.c_str());
+ }
+#endif
+
private:
template <typename T>
void printNameAndTime(const T& command, double ns) {