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

Unified Diff: bench/nanobench.cpp

Issue 724073002: Revert of Make nanobench and dm be usable from Chromium build (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | « bench/nanobench.h ('k') | bench/nanobench_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index baa109ede74d344e9728ab7089a1b2e07401317b..1f5ae60f822ab9d28b84c37b37465398544616b5 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -572,7 +572,9 @@
int fCurrentSKP;
};
+int nanobench_main();
int nanobench_main() {
+ SetupCrashHandler();
SkAutoGraphics ag;
#if SK_SUPPORT_GPU
@@ -750,3 +752,9 @@
return 0;
}
+#if !defined SK_BUILD_FOR_IOS
+int main(int argc, char** argv) {
+ SkCommandLineFlags::Parse(argc, argv);
+ return nanobench_main();
+}
+#endif
« no previous file with comments | « bench/nanobench.h ('k') | bench/nanobench_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698