| Index: tools/DumpRecord.cpp
|
| diff --git a/tools/DumpRecord.cpp b/tools/DumpRecord.cpp
|
| index efaf0eb58e81ea5fdee96fdefdc9a387b7e7d905..51a9d1f4a6f6f77d2d493e3a9660c53ce77c99ea 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) {
|
|
|