OLD | NEW |
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 | 9 |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 "\t\tdebug \t\t\tUse debug OpenGL.\n" | 57 "\t\tdebug \t\t\tUse debug OpenGL.\n" |
58 "\t\tnull \t\t\tUse null OpenGL.\n" | 58 "\t\tnull \t\t\tUse null OpenGL.\n" |
59 #if SK_ANGLE | 59 #if SK_ANGLE |
60 #ifdef SK_BUILD_FOR_WIN | 60 #ifdef SK_BUILD_FOR_WIN |
61 "\t\tangle\t\t\tUse ANGLE DirectX.\n" | 61 "\t\tangle\t\t\tUse ANGLE DirectX.\n" |
62 #endif | 62 #endif |
63 "\t\tangle-gl\t\t\tUse ANGLE OpenGL.\n" | 63 "\t\tangle-gl\t\t\tUse ANGLE OpenGL.\n" |
64 #endif | 64 #endif |
65 #if SK_COMMAND_BUFFER | 65 #if SK_COMMAND_BUFFER |
66 "\t\tcommandbuffer\t\tUse command buffer.\n" | 66 "\t\tcommandbuffer\t\tUse command buffer.\n" |
67 "\t\tcommandbuffer3\t\tUse command buffer ES 3.0 (experimental).\n" | |
68 #endif | 67 #endif |
69 #if SK_MESA | 68 #if SK_MESA |
70 "\t\tmesa\t\t\tUse MESA.\n" | 69 "\t\tmesa\t\t\tUse MESA.\n" |
71 #endif | 70 #endif |
72 "\tdit\ttype: bool\tdefault: false.\n" | 71 "\tdit\ttype: bool\tdefault: false.\n" |
73 "\t Use device independent text.\n" | 72 "\t Use device independent text.\n" |
74 "\tnvpr\ttype: bool\tdefault: false.\n" | 73 "\tnvpr\ttype: bool\tdefault: false.\n" |
75 "\t Use NV_path_rendering OpenGL and OpenGL ES extension.\n" | 74 "\t Use NV_path_rendering OpenGL and OpenGL ES extension.\n" |
76 "\tsamples\ttype: int\tdefault: 0.\n" | 75 "\tsamples\ttype: int\tdefault: 0.\n" |
77 "\t Use multisampling with N samples.\n" | 76 "\t Use multisampling with N samples.\n" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 return true; | 207 return true; |
209 } | 208 } |
210 #endif | 209 #endif |
211 if (value.equals("angle-gl")) { | 210 if (value.equals("angle-gl")) { |
212 *outContextType = GrContextFactory::kANGLE_GL_GLContextType; | 211 *outContextType = GrContextFactory::kANGLE_GL_GLContextType; |
213 return true; | 212 return true; |
214 } | 213 } |
215 #endif | 214 #endif |
216 #if SK_COMMAND_BUFFER | 215 #if SK_COMMAND_BUFFER |
217 if (value.equals("commandbuffer")) { | 216 if (value.equals("commandbuffer")) { |
218 *outContextType = GrContextFactory::kCommandBufferES2_GLContextType; | 217 *outContextType = GrContextFactory::kCommandBuffer_GLContextType; |
219 return true; | |
220 } | |
221 if (value.equals("commandbuffer3")) { | |
222 *outContextType = GrContextFactory::kCommandBufferES3_GLContextType; | |
223 return true; | 218 return true; |
224 } | 219 } |
225 #endif | 220 #endif |
226 #if SK_MESA | 221 #if SK_MESA |
227 if (value.equals("mesa")) { | 222 if (value.equals("mesa")) { |
228 *outContextType = GrContextFactory::kMESA_GLContextType; | 223 *outContextType = GrContextFactory::kMESA_GLContextType; |
229 return true; | 224 return true; |
230 } | 225 } |
231 #endif | 226 #endif |
232 return false; | 227 return false; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 if (extendedBackend.equals("gpu")) { | 327 if (extendedBackend.equals("gpu")) { |
333 parsedConfig = parse_command_line_config_gpu(tag, vias, extendedOpti
ons); | 328 parsedConfig = parse_command_line_config_gpu(tag, vias, extendedOpti
ons); |
334 } | 329 } |
335 #endif | 330 #endif |
336 if (!parsedConfig) { | 331 if (!parsedConfig) { |
337 parsedConfig = new SkCommandLineConfig(tag, simpleBackend, vias); | 332 parsedConfig = new SkCommandLineConfig(tag, simpleBackend, vias); |
338 } | 333 } |
339 outResult->emplace_back(parsedConfig); | 334 outResult->emplace_back(parsedConfig); |
340 } | 335 } |
341 } | 336 } |
OLD | NEW |