| 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 11 matching lines...) Expand all Loading... |
| 22 #include "SkMD5.h" | 22 #include "SkMD5.h" |
| 23 #include "SkMutex.h" | 23 #include "SkMutex.h" |
| 24 #include "SkOSFile.h" | 24 #include "SkOSFile.h" |
| 25 #include "SkTHash.h" | 25 #include "SkTHash.h" |
| 26 #include "SkTaskGroup.h" | 26 #include "SkTaskGroup.h" |
| 27 #include "SkThreadUtils.h" | 27 #include "SkThreadUtils.h" |
| 28 #include "Test.h" | 28 #include "Test.h" |
| 29 #include "Timer.h" | 29 #include "Timer.h" |
| 30 #include "sk_tool_utils.h" | 30 #include "sk_tool_utils.h" |
| 31 | 31 |
| 32 #ifdef SK_PDF_IMAGE_STATS |
| 33 extern void SkPDFImageDumpStats(); |
| 34 #endif |
| 35 |
| 32 #ifdef SKIA_PNG_PREFIXED | 36 #ifdef SKIA_PNG_PREFIXED |
| 33 // this must proceed png.h | 37 // this must proceed png.h |
| 34 #include "pngprefix.h" | 38 #include "pngprefix.h" |
| 35 #endif | 39 #endif |
| 36 #include "png.h" | 40 #include "png.h" |
| 37 | 41 |
| 38 #include <stdlib.h> | 42 #include <stdlib.h> |
| 39 | 43 |
| 40 DEFINE_string(src, "tests gm skp image", "Source types to test."); | 44 DEFINE_string(src, "tests gm skp image", "Source types to test."); |
| 41 DEFINE_bool(nameByHash, false, | 45 DEFINE_bool(nameByHash, false, |
| (...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 for (int i = 0; i < gFailures.count(); i++) { | 1096 for (int i = 0; i < gFailures.count(); i++) { |
| 1093 SkDebugf("\t%s\n", gFailures[i].c_str()); | 1097 SkDebugf("\t%s\n", gFailures[i].c_str()); |
| 1094 } | 1098 } |
| 1095 SkDebugf("%d failures\n", gFailures.count()); | 1099 SkDebugf("%d failures\n", gFailures.count()); |
| 1096 return 1; | 1100 return 1; |
| 1097 } | 1101 } |
| 1098 if (gPending > 0) { | 1102 if (gPending > 0) { |
| 1099 SkDebugf("Hrm, we didn't seem to run everything we intended to! Please
file a bug.\n"); | 1103 SkDebugf("Hrm, we didn't seem to run everything we intended to! Please
file a bug.\n"); |
| 1100 return 1; | 1104 return 1; |
| 1101 } | 1105 } |
| 1106 #ifdef SK_PDF_IMAGE_STATS |
| 1107 SkPDFImageDumpStats(); |
| 1108 #endif // SK_PDF_IMAGE_STATS |
| 1102 return 0; | 1109 return 0; |
| 1103 } | 1110 } |
| 1104 | 1111 |
| 1105 #if !defined(SK_BUILD_FOR_IOS) | 1112 #if !defined(SK_BUILD_FOR_IOS) |
| 1106 int main(int argc, char** argv) { | 1113 int main(int argc, char** argv) { |
| 1107 SkCommandLineFlags::Parse(argc, argv); | 1114 SkCommandLineFlags::Parse(argc, argv); |
| 1108 return dm_main(); | 1115 return dm_main(); |
| 1109 } | 1116 } |
| 1110 #endif | 1117 #endif |
| OLD | NEW |