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

Side by Side Diff: tools/skpdiff/skpdiff_main.cpp

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 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 | « tools/skpdiff/SkDiffContext.cpp ('k') | tools/skpdiff/skpdiff_util.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 // TODO(djsollen): Rename this whole package (perhaps to "SkMultiDiffer"). 8 // TODO(djsollen): Rename this whole package (perhaps to "SkMultiDiffer").
9 // It's not just for "pdiff" (perceptual diffs)--it's a harness that allows 9 // It's not just for "pdiff" (perceptual diffs)--it's a harness that allows
10 // the execution of an arbitrary set of difference algorithms. 10 // the execution of an arbitrary set of difference algorithms.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Needed by various Skia components 127 // Needed by various Skia components
128 SkAutoGraphics ag; 128 SkAutoGraphics ag;
129 SkTaskGroup::Enabler enabled; 129 SkTaskGroup::Enabler enabled;
130 130
131 if (FLAGS_list) { 131 if (FLAGS_list) {
132 SkDebugf("Available Metrics:\n"); 132 SkDebugf("Available Metrics:\n");
133 } 133 }
134 134
135 // Figure which differs the user chose, and optionally print them if the use r requests it 135 // Figure which differs the user chose, and optionally print them if the use r requests it
136 SkTDArray<SkImageDiffer*> chosenDiffers; 136 SkTDArray<SkImageDiffer*> chosenDiffers;
137 for (int differIndex = 0; NULL != gDiffers[differIndex]; differIndex++) { 137 for (int differIndex = 0; gDiffers[differIndex]; differIndex++) {
138 SkImageDiffer* differ = gDiffers[differIndex]; 138 SkImageDiffer* differ = gDiffers[differIndex];
139 if (FLAGS_list) { 139 if (FLAGS_list) {
140 SkDebugf(" %s", differ->getName()); 140 SkDebugf(" %s", differ->getName());
141 SkDebugf("\n"); 141 SkDebugf("\n");
142 } 142 }
143 143
144 // Check if this differ was chosen by any of the flags. Initialize them if they were chosen. 144 // Check if this differ was chosen by any of the flags. Initialize them if they were chosen.
145 if (FLAGS_differs.isEmpty()) { 145 if (FLAGS_differs.isEmpty()) {
146 // If no differs were chosen, they all get added 146 // If no differs were chosen, they all get added
147 if (differ->requiresOpenCL()) { 147 if (differ->requiresOpenCL()) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } 257 }
258 258
259 return 0; 259 return 0;
260 } 260 }
261 261
262 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 262 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
263 int main(int argc, char * argv[]) { 263 int main(int argc, char * argv[]) {
264 return tool_main(argc, (char**) argv); 264 return tool_main(argc, (char**) argv);
265 } 265 }
266 #endif 266 #endif
OLDNEW
« no previous file with comments | « tools/skpdiff/SkDiffContext.cpp ('k') | tools/skpdiff/skpdiff_util.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698