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

Unified Diff: dm/DM.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_main.cpp ('k') | dm/dm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 08a458756f876eab57f9a037f2c10bd1dddda673..52c86d5f6880dc6f79f0e759808ec1d021a84f07 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -1,6 +1,7 @@
// Main binary for DM.
// For a high-level overview, please see dm/README.
+#include "CrashHandler.h"
#include "LazyDecodeBitmap.h"
#include "SkCommonFlags.h"
#include "SkForceLinking.h"
@@ -186,7 +187,9 @@
}
}
+int dm_main();
int dm_main() {
+ SetupCrashHandler();
SkAutoGraphics ag;
SkTaskGroup::Enabler enabled(FLAGS_threads);
@@ -241,3 +244,10 @@
report_failures(failures);
return failures.count() > 0;
}
+
+#if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
+int main(int argc, char** argv) {
+ SkCommandLineFlags::Parse(argc, argv);
+ return dm_main();
+}
+#endif
« no previous file with comments | « bench/nanobench_main.cpp ('k') | dm/dm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698