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

Unified Diff: tools/DumpRecord.cpp

Issue 2120333002: deferred canvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: override drawTextRSXform Created 4 years, 5 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
« no previous file with comments | « tests/CanvasTest.cpp ('k') | tools/dump_record.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « tests/CanvasTest.cpp ('k') | tools/dump_record.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698