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" |
11 #include "DMSrcSinkAndroid.h" | 11 #include "DMSrcSinkAndroid.h" |
12 #include "ProcStats.h" | 12 #include "ProcStats.h" |
| 13 #include "Resources.h" |
13 #include "SkBBHFactory.h" | 14 #include "SkBBHFactory.h" |
14 #include "SkChecksum.h" | 15 #include "SkChecksum.h" |
15 #include "SkCodec.h" | 16 #include "SkCodec.h" |
16 #include "SkCommonFlags.h" | 17 #include "SkCommonFlags.h" |
17 #include "SkCommonFlagsConfig.h" | 18 #include "SkCommonFlagsConfig.h" |
18 #include "SkFontMgr.h" | 19 #include "SkFontMgr.h" |
19 #include "SkForceLinking.h" | 20 #include "SkForceLinking.h" |
20 #include "SkGraphics.h" | 21 #include "SkGraphics.h" |
21 #include "SkMD5.h" | 22 #include "SkMD5.h" |
22 #include "SkMutex.h" | 23 #include "SkMutex.h" |
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 | 1139 |
1139 int dm_main(); | 1140 int dm_main(); |
1140 int dm_main() { | 1141 int dm_main() { |
1141 setup_crash_handler(); | 1142 setup_crash_handler(); |
1142 | 1143 |
1143 JsonWriter::DumpJson(); // It's handy for the bots to assume this is ~never
missing. | 1144 JsonWriter::DumpJson(); // It's handy for the bots to assume this is ~never
missing. |
1144 SkAutoGraphics ag; | 1145 SkAutoGraphics ag; |
1145 SkTaskGroup::Enabler enabled(FLAGS_threads); | 1146 SkTaskGroup::Enabler enabled(FLAGS_threads); |
1146 gCreateTypefaceDelegate = &create_from_name; | 1147 gCreateTypefaceDelegate = &create_from_name; |
1147 | 1148 |
| 1149 { |
| 1150 SkString testResourcePath = GetResourcePath("color_wheel.png"); |
| 1151 SkFILEStream testResource(testResourcePath.c_str()); |
| 1152 if (!testResource.isValid()) { |
| 1153 SkDebugf("Some resources are missing. Do you need to set --resource
Path?\n"); |
| 1154 } |
| 1155 } |
1148 gather_gold(); | 1156 gather_gold(); |
1149 gather_uninteresting_hashes(); | 1157 gather_uninteresting_hashes(); |
1150 | 1158 |
1151 if (!gather_srcs()) { | 1159 if (!gather_srcs()) { |
1152 return 1; | 1160 return 1; |
1153 } | 1161 } |
1154 gather_sinks(); | 1162 gather_sinks(); |
1155 gather_tests(); | 1163 gather_tests(); |
1156 | 1164 |
1157 gPending = gSrcs.count() * gSinks.count() + gParallelTests.count() + gSerial
Tests.count(); | 1165 gPending = gSrcs.count() * gSinks.count() + gParallelTests.count() + gSerial
Tests.count(); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 Reporter* reporter, | 1308 Reporter* reporter, |
1301 GrContextFactory* fac
tory); | 1309 GrContextFactory* fac
tory); |
1302 } // namespace skiatest | 1310 } // namespace skiatest |
1303 | 1311 |
1304 #if !defined(SK_BUILD_FOR_IOS) | 1312 #if !defined(SK_BUILD_FOR_IOS) |
1305 int main(int argc, char** argv) { | 1313 int main(int argc, char** argv) { |
1306 SkCommandLineFlags::Parse(argc, argv); | 1314 SkCommandLineFlags::Parse(argc, argv); |
1307 return dm_main(); | 1315 return dm_main(); |
1308 } | 1316 } |
1309 #endif | 1317 #endif |
OLD | NEW |