| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "CrashHandler.h" | 8 #include "CrashHandler.h" |
| 9 #include "DMJsonWriter.h" | 9 #include "DMJsonWriter.h" |
| 10 #include "DMSrcSink.h" | 10 #include "DMSrcSink.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "Test.h" | 27 #include "Test.h" |
| 28 #include "Timer.h" | 28 #include "Timer.h" |
| 29 #include "sk_tool_utils.h" | 29 #include "sk_tool_utils.h" |
| 30 | 30 |
| 31 #ifdef SKIA_PNG_PREFIXED | 31 #ifdef SKIA_PNG_PREFIXED |
| 32 // this must proceed png.h | 32 // this must proceed png.h |
| 33 #include "pngprefix.h" | 33 #include "pngprefix.h" |
| 34 #endif | 34 #endif |
| 35 #include "png.h" | 35 #include "png.h" |
| 36 | 36 |
| 37 #include <stdlib.h> |
| 38 |
| 37 DEFINE_string(src, "tests gm skp image", "Source types to test."); | 39 DEFINE_string(src, "tests gm skp image", "Source types to test."); |
| 38 DEFINE_bool(nameByHash, false, | 40 DEFINE_bool(nameByHash, false, |
| 39 "If true, write to FLAGS_writePath[0]/<hash>.png instead of " | 41 "If true, write to FLAGS_writePath[0]/<hash>.png instead of " |
| 40 "to FLAGS_writePath[0]/<config>/<sourceType>/<sourceOptions>/<name>.
png"); | 42 "to FLAGS_writePath[0]/<config>/<sourceType>/<sourceOptions>/<name>.
png"); |
| 41 DEFINE_bool2(pathOpsExtended, x, false, "Run extended pathOps tests."); | 43 DEFINE_bool2(pathOpsExtended, x, false, "Run extended pathOps tests."); |
| 42 DEFINE_string(matrix, "1 0 0 1", | 44 DEFINE_string(matrix, "1 0 0 1", |
| 43 "2x2 scale+skew matrix to apply or upright when using " | 45 "2x2 scale+skew matrix to apply or upright when using " |
| 44 "'matrix' or 'upright' in config."); | 46 "'matrix' or 'upright' in config."); |
| 45 DEFINE_bool(gpu_threading, false, "Allow GPU work to run on multiple threads?"); | 47 DEFINE_bool(gpu_threading, false, "Allow GPU work to run on multiple threads?"); |
| 46 | 48 |
| (...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 } | 910 } |
| 909 return 0; | 911 return 0; |
| 910 } | 912 } |
| 911 | 913 |
| 912 #if !defined(SK_BUILD_FOR_IOS) | 914 #if !defined(SK_BUILD_FOR_IOS) |
| 913 int main(int argc, char** argv) { | 915 int main(int argc, char** argv) { |
| 914 SkCommandLineFlags::Parse(argc, argv); | 916 SkCommandLineFlags::Parse(argc, argv); |
| 915 return dm_main(); | 917 return dm_main(); |
| 916 } | 918 } |
| 917 #endif | 919 #endif |
| OLD | NEW |