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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 static const struct { | 106 static const struct { |
107 const char* predefinedConfig; | 107 const char* predefinedConfig; |
108 const char* backend; | 108 const char* backend; |
109 const char* options; | 109 const char* options; |
110 } gPredefinedConfigs[] = { | 110 } gPredefinedConfigs[] = { |
111 #if SK_SUPPORT_GPU | 111 #if SK_SUPPORT_GPU |
112 { "gpu", "gpu", "" }, | 112 { "gpu", "gpu", "" }, |
113 { "msaa4", "gpu", "samples=4" }, | 113 { "msaa4", "gpu", "samples=4" }, |
114 { "msaa16", "gpu", "samples=16" }, | 114 { "msaa16", "gpu", "samples=16" }, |
115 { "nvprmsaa4", "gpu", "nvpr=true,samples=4" }, | 115 { "nvprmsaa4", "gpu", "nvpr=true,samples=4,dit=true" }, |
116 { "nvprmsaa16", "gpu", "nvpr=true,samples=16" }, | 116 { "nvprmsaa16", "gpu", "nvpr=true,samples=16,dit=true" }, |
117 { "gpudft", "gpu", "dit=true" }, | 117 { "gpudft", "gpu", "dit=true" }, |
118 { "gpudebug", "gpu", "api=debug" }, | 118 { "gpudebug", "gpu", "api=debug" }, |
119 { "gpunull", "gpu", "api=null" }, | 119 { "gpunull", "gpu", "api=null" }, |
120 { "debug", "gpu", "api=debug" }, | 120 { "debug", "gpu", "api=debug" }, |
121 { "nullgpu", "gpu", "api=null" } | 121 { "nullgpu", "gpu", "api=null" } |
122 #if SK_ANGLE | 122 #if SK_ANGLE |
123 #ifdef SK_BUILD_FOR_WIN | 123 #ifdef SK_BUILD_FOR_WIN |
124 , { "angle", "gpu", "api=angle" } | 124 , { "angle", "gpu", "api=angle" } |
125 #endif | 125 #endif |
126 , { "angle-gl", "gpu", "api=angle-gl" } | 126 , { "angle-gl", "gpu", "api=angle-gl" } |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 if (extendedBackend.equals("gpu")) { | 327 if (extendedBackend.equals("gpu")) { |
328 parsedConfig = parse_command_line_config_gpu(tag, vias, extendedOpti
ons); | 328 parsedConfig = parse_command_line_config_gpu(tag, vias, extendedOpti
ons); |
329 } | 329 } |
330 #endif | 330 #endif |
331 if (!parsedConfig) { | 331 if (!parsedConfig) { |
332 parsedConfig = new SkCommandLineConfig(tag, simpleBackend, vias); | 332 parsedConfig = new SkCommandLineConfig(tag, simpleBackend, vias); |
333 } | 333 } |
334 outResult->emplace_back(parsedConfig); | 334 outResult->emplace_back(parsedConfig); |
335 } | 335 } |
336 } | 336 } |
OLD | NEW |