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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 if (!data) { | 181 if (!data) { |
182 SkDebugf("WARNING: unable to read uninteresting hashes from %s\n", | 182 SkDebugf("WARNING: unable to read uninteresting hashes from %s\n", |
183 FLAGS_uninterestingHashesFile[0]); | 183 FLAGS_uninterestingHashesFile[0]); |
184 return; | 184 return; |
185 } | 185 } |
186 SkTArray<SkString> hashes; | 186 SkTArray<SkString> hashes; |
187 SkStrSplit((const char*)data->data(), "\n", &hashes); | 187 SkStrSplit((const char*)data->data(), "\n", &hashes); |
188 for (const SkString& hash : hashes) { | 188 for (const SkString& hash : hashes) { |
189 gUninterestingHashes.add(hash); | 189 gUninterestingHashes.add(hash); |
190 } | 190 } |
| 191 SkDebugf("FYI: loaded %d distinct uninteresting hashes from %d lines\n", |
| 192 gUninterestingHashes.count(), hashes.count()); |
191 } | 193 } |
192 } | 194 } |
193 | 195 |
194 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ | 196 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ |
195 | 197 |
196 struct TaggedSrc : public SkAutoTDelete<Src> { | 198 struct TaggedSrc : public SkAutoTDelete<Src> { |
197 ImplicitString tag; | 199 ImplicitString tag; |
198 ImplicitString options; | 200 ImplicitString options; |
199 }; | 201 }; |
200 | 202 |
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1301 Reporter* reporter, | 1303 Reporter* reporter, |
1302 GrContextFactory* fac
tory); | 1304 GrContextFactory* fac
tory); |
1303 } // namespace skiatest | 1305 } // namespace skiatest |
1304 | 1306 |
1305 #if !defined(SK_BUILD_FOR_IOS) | 1307 #if !defined(SK_BUILD_FOR_IOS) |
1306 int main(int argc, char** argv) { | 1308 int main(int argc, char** argv) { |
1307 SkCommandLineFlags::Parse(argc, argv); | 1309 SkCommandLineFlags::Parse(argc, argv); |
1308 return dm_main(); | 1310 return dm_main(); |
1309 } | 1311 } |
1310 #endif | 1312 #endif |
OLD | NEW |