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

Unified Diff: tools/filtermain.cpp

Issue 13405003: Add before and after command count to filter tool (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Remove debugging cruft Created 7 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/filtermain.cpp
===================================================================
--- tools/filtermain.cpp (revision 8488)
+++ tools/filtermain.cpp (working copy)
@@ -21,7 +21,7 @@
static void usage() {
SkDebugf("Usage: filter -i inFile [-o outFile] [--input-dir path] [--output-dir path]\n");
SkDebugf(" [-h|--help]\n\n");
- SkDebugf(" -i inFile : file to file.\n");
+ SkDebugf(" -i inFile : file to filter.\n");
SkDebugf(" -o outFile : result of filtering.\n");
SkDebugf(" --input-dir : process all files in dir with .skp extension.\n");
SkDebugf(" --output-dir : results of filtering the input dir.\n");
@@ -654,6 +654,7 @@
}
bool changed = true;
+ int numBefore = debugCanvas.getSize();
while (changed) {
changed = false;
@@ -677,6 +678,8 @@
}
}
+ int numAfter = debugCanvas.getSize();
+
if (!outFile.isEmpty()) {
SkPicture outPicture;
@@ -700,7 +703,8 @@
if (!someOptFired) {
SkDebugf("No opts fired\n");
} else {
- SkDebugf("\n");
+ SkDebugf("\t before: %d after: %d delta: %d\n",
+ numBefore, numAfter, numBefore-numAfter);
}
return 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698