aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-11-19 10:31:08 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-19 10:31:08 -0800
commitf38b0d86b888692f7d703916114781be43249600 (patch)
tree21129c8bbbfa71ca9a3db26eb127a0d6787aa3c9 /tools
parent1d02a60fec20018c987ef827abbd5e77562c3a67 (diff)
add SkRecordOptimize2 and an experimental API for more aggressive opts
Diffstat (limited to 'tools')
-rw-r--r--tools/dump_record.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/dump_record.cpp b/tools/dump_record.cpp
index 1b5f1dc27c..029638efb1 100644
--- a/tools/dump_record.cpp
+++ b/tools/dump_record.cpp
@@ -19,6 +19,7 @@
DEFINE_string2(skps, r, "", ".SKPs to dump.");
DEFINE_string(match, "", "The usual filters on file names to dump.");
DEFINE_bool2(optimize, O, false, "Run SkRecordOptimize before dumping.");
+DEFINE_bool(optimize2, false, "Run SkRecordOptimize2 before dumping.");
DEFINE_int32(tile, 1000000000, "Simulated tile size.");
DEFINE_bool(timeWithCommand, false, "If true, print time next to command, else in first column.");
DEFINE_string2(write, w, "", "Write the (optimized) picture to the named file.");
@@ -65,6 +66,9 @@ int tool_main(int argc, char** argv) {
if (FLAGS_optimize) {
SkRecordOptimize(&record);
}
+ if (FLAGS_optimize2) {
+ SkRecordOptimize2(&record);
+ }
dump(FLAGS_skps[i], w, h, record);