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

Side by Side Diff: dm/DM.cpp

Issue 1359833005: fix DM? (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fuse Created 5 years, 2 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 | tests/StringTest.cpp » ('j') | 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | tests/StringTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698