| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 } | 157 } |
| 158 } | 158 } |
| 159 | 159 |
| 160 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ | 160 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ |
| 161 | 161 |
| 162 static SkTHashSet<SkString> gUninterestingHashes; | 162 static SkTHashSet<SkString> gUninterestingHashes; |
| 163 | 163 |
| 164 static void gather_uninteresting_hashes() { | 164 static void gather_uninteresting_hashes() { |
| 165 if (!FLAGS_uninterestingHashesFile.isEmpty()) { | 165 if (!FLAGS_uninterestingHashesFile.isEmpty()) { |
| 166 SkAutoTUnref<SkData> data(SkData::NewFromFileName(FLAGS_uninterestingHas
hesFile[0])); | 166 SkAutoTUnref<SkData> data(SkData::NewFromFileName(FLAGS_uninterestingHas
hesFile[0])); |
| 167 if (!data) { |
| 168 SkDebugf("WARNING: unable to read uninteresting hashes from %s\n", |
| 169 FLAGS_uninterestingHashesFile[0]); |
| 170 return; |
| 171 } |
| 167 SkTArray<SkString> hashes; | 172 SkTArray<SkString> hashes; |
| 168 SkStrSplit((const char*)data->data(), "\n", &hashes); | 173 SkStrSplit((const char*)data->data(), "\n", &hashes); |
| 169 for (const SkString& hash : hashes) { | 174 for (const SkString& hash : hashes) { |
| 170 gUninterestingHashes.add(hash); | 175 gUninterestingHashes.add(hash); |
| 171 } | 176 } |
| 172 } | 177 } |
| 173 } | 178 } |
| 174 | 179 |
| 175 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ | 180 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ |
| 176 | 181 |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 } | 1099 } |
| 1095 return 0; | 1100 return 0; |
| 1096 } | 1101 } |
| 1097 | 1102 |
| 1098 #if !defined(SK_BUILD_FOR_IOS) | 1103 #if !defined(SK_BUILD_FOR_IOS) |
| 1099 int main(int argc, char** argv) { | 1104 int main(int argc, char** argv) { |
| 1100 SkCommandLineFlags::Parse(argc, argv); | 1105 SkCommandLineFlags::Parse(argc, argv); |
| 1101 return dm_main(); | 1106 return dm_main(); |
| 1102 } | 1107 } |
| 1103 #endif | 1108 #endif |
| OLD | NEW |