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

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

Issue 2251473002: Add mssa configs for vulkan, and simple bug fix (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | « src/gpu/vk/GrVkUtil.cpp ('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 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 #endif 120 #endif
121 #if SK_COMMAND_BUFFER 121 #if SK_COMMAND_BUFFER
122 "\tcommandbuffer\t= gpu(api=commandbuffer)\n" 122 "\tcommandbuffer\t= gpu(api=commandbuffer)\n"
123 #endif 123 #endif
124 #if SK_MESA 124 #if SK_MESA
125 "\tmesa \t= gpu(api=mesa)\n" 125 "\tmesa \t= gpu(api=mesa)\n"
126 #endif 126 #endif
127 #ifdef SK_VULKAN 127 #ifdef SK_VULKAN
128 "\tvk \t= gpu(api=vulkan)\n" 128 "\tvk \t= gpu(api=vulkan)\n"
129 "\tvksrgb \t= gpu(api=vulkan,color=srgb)\n" 129 "\tvksrgb \t= gpu(api=vulkan,color=srgb)\n"
130 "\tvkmsaa4 \t= gpu(api=gl,samples=4)\n"
131 "\tvkmsaa16 \t= gpu(api=gl,samples=16)\n"
130 #endif 132 #endif
131 #endif 133 #endif
132 ; 134 ;
133 135
134 DEFINE_extended_string(config, defaultConfigs, configHelp, configExtendedHelp); 136 DEFINE_extended_string(config, defaultConfigs, configHelp, configExtendedHelp);
135 137
136 static const struct { 138 static const struct {
137 const char* predefinedConfig; 139 const char* predefinedConfig;
138 const char* backend; 140 const char* backend;
139 const char* options; 141 const char* options;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 #endif 174 #endif
173 , { "angle-gl", "gpu", "api=angle-gl" } 175 , { "angle-gl", "gpu", "api=angle-gl" }
174 #endif 176 #endif
175 #if SK_COMMAND_BUFFER 177 #if SK_COMMAND_BUFFER
176 , { "commandbuffer", "gpu", "api=commandbuffer" } 178 , { "commandbuffer", "gpu", "api=commandbuffer" }
177 #endif 179 #endif
178 #if SK_MESA 180 #if SK_MESA
179 , { "mesa", "gpu", "api=mesa" } 181 , { "mesa", "gpu", "api=mesa" }
180 #endif 182 #endif
181 #ifdef SK_VULKAN 183 #ifdef SK_VULKAN
182 , { "vk", "gpu", "api=vulkan" } 184 , { "vk", "gpu", "api=vulkan" }
183 , { "vksrgb", "gpu", "api=vulkan,color=srgb" } 185 , { "vksrgb", "gpu", "api=vulkan,color=srgb" }
186 , { "vkmsaa4", "gpu", "api=vulkan,samples=4" }
187 , { "vkmsaa16", "gpu", "api=vulkan,samples=16" }
184 #endif 188 #endif
185 189
186 #else 190 #else
187 { "", "", "" } 191 { "", "", "" }
188 #endif 192 #endif
189 }; 193 };
190 194
191 SkCommandLineConfig::SkCommandLineConfig(const SkString& tag, const SkString& ba ckend, 195 SkCommandLineConfig::SkCommandLineConfig(const SkString& tag, const SkString& ba ckend,
192 const SkTArray<SkString>& viaParts) 196 const SkTArray<SkString>& viaParts)
193 : fTag(tag) 197 : fTag(tag)
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 if (extendedBackend.equals("gpu")) { 421 if (extendedBackend.equals("gpu")) {
418 parsedConfig = parse_command_line_config_gpu(tag, vias, extendedOpti ons); 422 parsedConfig = parse_command_line_config_gpu(tag, vias, extendedOpti ons);
419 } 423 }
420 #endif 424 #endif
421 if (!parsedConfig) { 425 if (!parsedConfig) {
422 parsedConfig = new SkCommandLineConfig(tag, simpleBackend, vias); 426 parsedConfig = new SkCommandLineConfig(tag, simpleBackend, vias);
423 } 427 }
424 outResult->emplace_back(parsedConfig); 428 outResult->emplace_back(parsedConfig);
425 } 429 }
426 } 430 }
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkUtil.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698