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> |
11 | 11 |
| 12 #if SK_SUPPORT_GPU |
| 13 using sk_gpu_test::GrContextFactory; |
| 14 #endif |
| 15 |
12 static const char defaultConfigs[] = | 16 static const char defaultConfigs[] = |
13 "565 8888 gpu nonrendering" | 17 "565 8888 gpu nonrendering" |
14 #if SK_ANGLE | 18 #if SK_ANGLE |
15 #ifdef SK_BUILD_FOR_WIN | 19 #ifdef SK_BUILD_FOR_WIN |
16 " angle" | 20 " angle" |
17 #endif | 21 #endif |
18 #endif | 22 #endif |
19 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 23 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
20 " hwui" | 24 " hwui" |
21 #endif | 25 #endif |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 if (extendedBackend.equals("gpu")) { | 371 if (extendedBackend.equals("gpu")) { |
368 parsedConfig = parse_command_line_config_gpu(tag, vias, extendedOpti
ons); | 372 parsedConfig = parse_command_line_config_gpu(tag, vias, extendedOpti
ons); |
369 } | 373 } |
370 #endif | 374 #endif |
371 if (!parsedConfig) { | 375 if (!parsedConfig) { |
372 parsedConfig = new SkCommandLineConfig(tag, simpleBackend, vias); | 376 parsedConfig = new SkCommandLineConfig(tag, simpleBackend, vias); |
373 } | 377 } |
374 outResult->emplace_back(parsedConfig); | 378 outResult->emplace_back(parsedConfig); |
375 } | 379 } |
376 } | 380 } |
OLD | NEW |