Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: dm/DM.cpp

Issue 1663223002: DM: add uninteresting hashes FYI (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: already have that Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698