Index: bench/nanobench_main.cpp |
diff --git a/bench/nanobench_main.cpp b/bench/nanobench_main.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a598adc264809c3ea73a4b68346c35c66eb26a2d |
--- /dev/null |
+++ b/bench/nanobench_main.cpp |
@@ -0,0 +1,18 @@ |
+/* |
+ * Copyright 2014 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+ |
+#include "CrashHandler.h" |
+#include "SkCommandLineFlags.h" |
+#include "nanobench.h" |
+ |
+int main(int argc, char * const argv[]) { |
+ SetupCrashHandler(); |
+ SkCommandLineFlags::Parse(argc, const_cast<char**>(argv)); |
+ return nanobench_main(); |
+ |
+} |