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

Side by Side Diff: tools/flags/SkCommonFlags.cpp

Issue 2019073002: Move forceSRGB to SkCommonFlags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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/flags/SkCommonFlags.h ('k') | 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 2014 Google Inc. 2 * Copyright 2014 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 "SkCommonFlags.h" 8 #include "SkCommonFlags.h"
9 #include "SkOSFile.h" 9 #include "SkOSFile.h"
10 10
11 DEFINE_bool(cpu, true, "master switch for running CPU-bound work."); 11 DEFINE_bool(cpu, true, "master switch for running CPU-bound work.");
12 12
13 DEFINE_bool(dryRun, false, 13 DEFINE_bool(dryRun, false,
14 "just print the tests that would be run, without actually running th em."); 14 "just print the tests that would be run, without actually running th em.");
15 15
16 DEFINE_bool(forceSRGB, false, "Force SRGB for imageinfos");
17
16 DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); 18 DEFINE_bool(gpu, true, "master switch for running GPU-bound work.");
17 19
18 DEFINE_string(images, "", "List of images and/or directories to decode. A direct ory with no images" 20 DEFINE_string(images, "", "List of images and/or directories to decode. A direct ory with no images"
19 " is treated as a fatal error."); 21 " is treated as a fatal error.");
20 22
21 DEFINE_string(colorImages, "", "List of images and/or directories to decode with color correction. " 23 DEFINE_string(colorImages, "", "List of images and/or directories to decode with color correction. "
22 "A directory with no images is treated as a fatal error."); 24 "A directory with no images is treated as a fatal error.");
23 25
24 DEFINE_string2(match, m, nullptr, 26 DEFINE_string2(match, m, nullptr,
25 "[~][^]substring[$] [...] of GM name to run.\n" 27 "[~][^]substring[$] [...] of GM name to run.\n"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 SkDebugf("No supported images found in %s!\n", flag); 94 SkDebugf("No supported images found in %s!\n", flag);
93 return false; 95 return false;
94 } 96 }
95 } else { 97 } else {
96 // Also add the value if it is a single image 98 // Also add the value if it is a single image
97 output->push_back() = flag; 99 output->push_back() = flag;
98 } 100 }
99 } 101 }
100 return true; 102 return true;
101 } 103 }
OLDNEW
« no previous file with comments | « tools/flags/SkCommonFlags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698