diff options
author | reed <reed@google.com> | 2016-07-08 08:43:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-08 08:43:28 -0700 |
commit | babc3de2ce7c2f7b32b1b6b9f36d2ac4a4d8dee1 (patch) | |
tree | e9cae65810720a7e06ad6655da10f16b37627338 /tools/DumpRecord.cpp | |
parent | bd2bbe4a1750166136c7729adb0b48ebd7132b74 (diff) |
deferred canvas
tries to eliminate unneeded clipRects and concats (and their associated save/restores).
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2120333002
Review-Url: https://codereview.chromium.org/2120333002
Diffstat (limited to 'tools/DumpRecord.cpp')
-rw-r--r-- | tools/DumpRecord.cpp | 19 |
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) { |