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

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

Issue 2358173002: GN: take over CommandBuffer bot (Closed)
Patch Set: GYP too Created 4 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 | « tests/TestConfigParsing.cpp ('k') | tools/gpu/GrContextFactory.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 2015 Google Inc. 2 * Copyright 2015 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 "SkCommonFlagsConfig.h" 8 #include "SkCommonFlagsConfig.h"
9 #include "SkImageInfo.h" 9 #include "SkImageInfo.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 { "gpudebug", "gpu", "api=debug" }, 59 { "gpudebug", "gpu", "api=debug" },
60 { "gpunull", "gpu", "api=null" }, 60 { "gpunull", "gpu", "api=null" },
61 { "debug", "gpu", "api=debug" }, 61 { "debug", "gpu", "api=debug" },
62 { "nullgpu", "gpu", "api=null" } 62 { "nullgpu", "gpu", "api=null" }
63 #if SK_ANGLE 63 #if SK_ANGLE
64 #ifdef SK_BUILD_FOR_WIN 64 #ifdef SK_BUILD_FOR_WIN
65 ,{ "angle", "gpu", "api=angle" } 65 ,{ "angle", "gpu", "api=angle" }
66 #endif 66 #endif
67 ,{ "angle-gl", "gpu", "api=angle-gl" } 67 ,{ "angle-gl", "gpu", "api=angle-gl" }
68 #endif 68 #endif
69 #if SK_COMMAND_BUFFER
70 ,{ "commandbuffer", "gpu", "api=commandbuffer" } 69 ,{ "commandbuffer", "gpu", "api=commandbuffer" }
71 #endif
72 #if SK_MESA 70 #if SK_MESA
73 ,{ "mesa", "gpu", "api=mesa" } 71 ,{ "mesa", "gpu", "api=mesa" }
74 #endif 72 #endif
75 #ifdef SK_VULKAN 73 #ifdef SK_VULKAN
76 ,{ "vk", "gpu", "api=vulkan" } 74 ,{ "vk", "gpu", "api=vulkan" }
77 ,{ "vksrgb", "gpu", "api=vulkan,color=srgb" } 75 ,{ "vksrgb", "gpu", "api=vulkan,color=srgb" }
78 ,{ "vkwide", "gpu", "api=vulkan,color=f16_wide" } 76 ,{ "vkwide", "gpu", "api=vulkan,color=f16_wide" }
79 ,{ "vkmsaa4", "gpu", "api=vulkan,samples=4" } 77 ,{ "vkmsaa4", "gpu", "api=vulkan,samples=4" }
80 ,{ "vkmsaa16", "gpu", "api=vulkan,samples=16" } 78 ,{ "vkmsaa16", "gpu", "api=vulkan,samples=16" }
81 #endif 79 #endif
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 "\t\tgl \t\t\tUse OpenGL.\n" 113 "\t\tgl \t\t\tUse OpenGL.\n"
116 "\t\tgles \t\t\tUse OpenGL ES.\n" 114 "\t\tgles \t\t\tUse OpenGL ES.\n"
117 "\t\tdebug \t\t\tUse debug OpenGL.\n" 115 "\t\tdebug \t\t\tUse debug OpenGL.\n"
118 "\t\tnull \t\t\tUse null OpenGL.\n" 116 "\t\tnull \t\t\tUse null OpenGL.\n"
119 #if SK_ANGLE 117 #if SK_ANGLE
120 #ifdef SK_BUILD_FOR_WIN 118 #ifdef SK_BUILD_FOR_WIN
121 "\t\tangle\t\t\tUse ANGLE DirectX.\n" 119 "\t\tangle\t\t\tUse ANGLE DirectX.\n"
122 #endif 120 #endif
123 "\t\tangle-gl\t\t\tUse ANGLE OpenGL.\n" 121 "\t\tangle-gl\t\t\tUse ANGLE OpenGL.\n"
124 #endif 122 #endif
125 #if SK_COMMAND_BUFFER
126 "\t\tcommandbuffer\t\tUse command buffer.\n" 123 "\t\tcommandbuffer\t\tUse command buffer.\n"
127 #endif
128 #if SK_MESA 124 #if SK_MESA
129 "\t\tmesa\t\t\tUse MESA.\n" 125 "\t\tmesa\t\t\tUse MESA.\n"
130 #endif 126 #endif
131 #ifdef SK_VULKAN 127 #ifdef SK_VULKAN
132 "\t\tvulkan\t\t\tUse Vulkan.\n" 128 "\t\tvulkan\t\t\tUse Vulkan.\n"
133 #endif 129 #endif
134 "\tcolor\ttype: string\tdefault: 8888.\n" 130 "\tcolor\ttype: string\tdefault: 8888.\n"
135 "\t Select framebuffer color format.\n" 131 "\t Select framebuffer color format.\n"
136 "\t Options:\n" 132 "\t Options:\n"
137 "\t\t8888\t\t\tLinear 8888.\n" 133 "\t\t8888\t\t\tLinear 8888.\n"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 if (value.equals("angle")) { 238 if (value.equals("angle")) {
243 *outContextType = GrContextFactory::kANGLE_ContextType; 239 *outContextType = GrContextFactory::kANGLE_ContextType;
244 return true; 240 return true;
245 } 241 }
246 #endif 242 #endif
247 if (value.equals("angle-gl")) { 243 if (value.equals("angle-gl")) {
248 *outContextType = GrContextFactory::kANGLE_GL_ContextType; 244 *outContextType = GrContextFactory::kANGLE_GL_ContextType;
249 return true; 245 return true;
250 } 246 }
251 #endif 247 #endif
252 #if SK_COMMAND_BUFFER
253 if (value.equals("commandbuffer")) { 248 if (value.equals("commandbuffer")) {
254 *outContextType = GrContextFactory::kCommandBuffer_ContextType; 249 *outContextType = GrContextFactory::kCommandBuffer_ContextType;
255 return true; 250 return true;
256 } 251 }
257 #endif
258 #if SK_MESA 252 #if SK_MESA
259 if (value.equals("mesa")) { 253 if (value.equals("mesa")) {
260 *outContextType = GrContextFactory::kMESA_ContextType; 254 *outContextType = GrContextFactory::kMESA_ContextType;
261 return true; 255 return true;
262 } 256 }
263 #endif 257 #endif
264 #ifdef SK_VULKAN 258 #ifdef SK_VULKAN
265 if (value.equals("vulkan")) { 259 if (value.equals("vulkan")) {
266 *outContextType = GrContextFactory::kVulkan_ContextType; 260 *outContextType = GrContextFactory::kVulkan_ContextType;
267 return true; 261 return true;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 if (extendedBackend.equals("gpu")) { 426 if (extendedBackend.equals("gpu")) {
433 parsedConfig = parse_command_line_config_gpu(tag, vias, extendedOpti ons); 427 parsedConfig = parse_command_line_config_gpu(tag, vias, extendedOpti ons);
434 } 428 }
435 #endif 429 #endif
436 if (!parsedConfig) { 430 if (!parsedConfig) {
437 parsedConfig = new SkCommandLineConfig(tag, simpleBackend, vias); 431 parsedConfig = new SkCommandLineConfig(tag, simpleBackend, vias);
438 } 432 }
439 outResult->emplace_back(parsedConfig); 433 outResult->emplace_back(parsedConfig);
440 } 434 }
441 } 435 }
OLDNEW
« no previous file with comments | « tests/TestConfigParsing.cpp ('k') | tools/gpu/GrContextFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698