| 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
|
|
|