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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 for (int i = 0; i < gFailures.count(); i++) { | 1102 for (int i = 0; i < gFailures.count(); i++) { |
1099 SkDebugf("\t%s\n", gFailures[i].c_str()); | 1103 SkDebugf("\t%s\n", gFailures[i].c_str()); |
1100 } | 1104 } |
1101 SkDebugf("%d failures\n", gFailures.count()); | 1105 SkDebugf("%d failures\n", gFailures.count()); |
1102 return 1; | 1106 return 1; |
1103 } | 1107 } |
1104 if (gPending > 0) { | 1108 if (gPending > 0) { |
1105 SkDebugf("Hrm, we didn't seem to run everything we intended to! Please
file a bug.\n"); | 1109 SkDebugf("Hrm, we didn't seem to run everything we intended to! Please
file a bug.\n"); |
1106 return 1; | 1110 return 1; |
1107 } | 1111 } |
| 1112 #ifdef SK_PDF_IMAGE_STATS |
| 1113 SkPDFImageDumpStats(); |
| 1114 #endif // SK_PDF_IMAGE_STATS |
1108 return 0; | 1115 return 0; |
1109 } | 1116 } |
1110 | 1117 |
1111 #if !defined(SK_BUILD_FOR_IOS) | 1118 #if !defined(SK_BUILD_FOR_IOS) |
1112 int main(int argc, char** argv) { | 1119 int main(int argc, char** argv) { |
1113 SkCommandLineFlags::Parse(argc, argv); | 1120 SkCommandLineFlags::Parse(argc, argv); |
1114 return dm_main(); | 1121 return dm_main(); |
1115 } | 1122 } |
1116 #endif | 1123 #endif |
OLD | NEW |