| 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 23 matching lines...) Expand all Loading... |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 #ifdef SKIA_PNG_PREFIXED | 36 #ifdef SKIA_PNG_PREFIXED |
| 37 // this must proceed png.h | 37 // this must proceed png.h |
| 38 #include "pngprefix.h" | 38 #include "pngprefix.h" |
| 39 #endif | 39 #endif |
| 40 #include "png.h" | 40 #include "png.h" |
| 41 | 41 |
| 42 #include <stdlib.h> | 42 #include <stdlib.h> |
| 43 | 43 |
| 44 #ifndef SK_BUILD_FOR_WIN32 |
| 45 #include <unistd.h> |
| 46 #endif |
| 47 |
| 44 DEFINE_string(src, "tests gm skp image", "Source types to test."); | 48 DEFINE_string(src, "tests gm skp image", "Source types to test."); |
| 45 DEFINE_bool(nameByHash, false, | 49 DEFINE_bool(nameByHash, false, |
| 46 "If true, write to FLAGS_writePath[0]/<hash>.png instead of " | 50 "If true, write to FLAGS_writePath[0]/<hash>.png instead of " |
| 47 "to FLAGS_writePath[0]/<config>/<sourceType>/<sourceOptions>/<name>.
png"); | 51 "to FLAGS_writePath[0]/<config>/<sourceType>/<sourceOptions>/<name>.
png"); |
| 48 DEFINE_bool2(pathOpsExtended, x, false, "Run extended pathOps tests."); | 52 DEFINE_bool2(pathOpsExtended, x, false, "Run extended pathOps tests."); |
| 49 DEFINE_string(matrix, "1 0 0 1", | 53 DEFINE_string(matrix, "1 0 0 1", |
| 50 "2x2 scale+skew matrix to apply or upright when using " | 54 "2x2 scale+skew matrix to apply or upright when using " |
| 51 "'matrix' or 'upright' in config."); | 55 "'matrix' or 'upright' in config."); |
| 52 DEFINE_bool(gpu_threading, false, "Allow GPU work to run on multiple threads?"); | 56 DEFINE_bool(gpu_threading, false, "Allow GPU work to run on multiple threads?"); |
| 53 | 57 |
| (...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1161 #endif // SK_PDF_IMAGE_STATS | 1165 #endif // SK_PDF_IMAGE_STATS |
| 1162 return 0; | 1166 return 0; |
| 1163 } | 1167 } |
| 1164 | 1168 |
| 1165 #if !defined(SK_BUILD_FOR_IOS) | 1169 #if !defined(SK_BUILD_FOR_IOS) |
| 1166 int main(int argc, char** argv) { | 1170 int main(int argc, char** argv) { |
| 1167 SkCommandLineFlags::Parse(argc, argv); | 1171 SkCommandLineFlags::Parse(argc, argv); |
| 1168 return dm_main(); | 1172 return dm_main(); |
| 1169 } | 1173 } |
| 1170 #endif | 1174 #endif |
| OLD | NEW |