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

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

Issue 1834693002: Add test configs for nvpr with atlas text (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: only nvprdit for dm Created 4 years, 8 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 | « tools/dm_flags.py ('k') | tools/nanobench_flags.py » ('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 9
10 #include <stdlib.h> 10 #include <stdlib.h>
11 11
12 static const char defaultConfigs[] = 12 static const char defaultConfigs[] =
13 "565 8888 gpu nonrendering" 13 "565 8888 gpu nonrendering"
14 #if SK_ANGLE 14 #if SK_ANGLE
15 #ifdef SK_BUILD_FOR_WIN 15 #ifdef SK_BUILD_FOR_WIN
16 " angle" 16 " angle"
17 #endif 17 #endif
18 #endif 18 #endif
19 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK 19 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
20 " hwui" 20 " hwui"
21 #endif 21 #endif
22 ; 22 ;
23 23
24 static const char configHelp[] = 24 static const char configHelp[] =
25 "Options: 565 8888 debug gpu gpudebug gpudft gpunull " 25 "Options: 565 8888 debug gpu gpudebug gpudft gpunull "
26 "msaa16 msaa4 gpuf16 gpusrgb nonrendering null nullgpu nvprmsaa16 nvprmsaa4 " 26 "msaa16 msaa4 gpuf16 gpusrgb nonrendering null nullgpu "
27 "pdf pdf_poppler skp svg xps" 27 "nvpr16 nvpr4 nvprdit16 nvprdit4 pdf pdf_poppler skp svg xps"
28 #if SK_ANGLE 28 #if SK_ANGLE
29 #ifdef SK_BUILD_FOR_WIN 29 #ifdef SK_BUILD_FOR_WIN
30 " angle" 30 " angle"
31 #endif 31 #endif
32 " angle-gl" 32 " angle-gl"
33 #endif 33 #endif
34 #if SK_COMMAND_BUFFER 34 #if SK_COMMAND_BUFFER
35 " commandbuffer" 35 " commandbuffer"
36 #endif 36 #endif
37 #if SK_MESA 37 #if SK_MESA
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 "\t\tf16 \t\t\tLinear 16-bit floating point.\n" 75 "\t\tf16 \t\t\tLinear 16-bit floating point.\n"
76 "\t\tsrgb\t\t\tsRGB 8888.\n" 76 "\t\tsrgb\t\t\tsRGB 8888.\n"
77 "\tdit\ttype: bool\tdefault: false.\n" 77 "\tdit\ttype: bool\tdefault: false.\n"
78 "\t Use device independent text.\n" 78 "\t Use device independent text.\n"
79 "\tnvpr\ttype: bool\tdefault: false.\n" 79 "\tnvpr\ttype: bool\tdefault: false.\n"
80 "\t Use NV_path_rendering OpenGL and OpenGL ES extension.\n" 80 "\t Use NV_path_rendering OpenGL and OpenGL ES extension.\n"
81 "\tsamples\ttype: int\tdefault: 0.\n" 81 "\tsamples\ttype: int\tdefault: 0.\n"
82 "\t Use multisampling with N samples.\n" 82 "\t Use multisampling with N samples.\n"
83 "\n" 83 "\n"
84 "Predefined configs:\n\n" 84 "Predefined configs:\n\n"
85 "\tgpu \t= gpu()\n" 85 "\tgpu \t= gpu()\n"
86 "\tmsaa4 \t= gpu(samples=4)\n" 86 "\tmsaa4 \t= gpu(samples=4)\n"
87 "\tmsaa16 \t= gpu(samples=16)\n" 87 "\tmsaa16 \t= gpu(samples=16)\n"
88 "\tnvprmsaa4\t= gpu(nvpr=true,samples=4)\n" 88 "\tnvpr4 \t= gpu(nvpr=true,samples=4)\n"
89 "\tnvprmsaa16\t= gpu(nvpr=true,samples=16)\n" 89 "\tnvpr16 \t= gpu(nvpr=true,samples=16)\n"
90 "\tnvprdit4 \t= gpu(nvpr=true,samples=4,dit=true)\n"
91 "\tnvprdit16 \t= gpu(nvpr=true,samples=16,dit=true)\n"
90 "\tgpuf16 \t= gpu(color=f16)\n" 92 "\tgpuf16 \t= gpu(color=f16)\n"
91 "\tgpusrgb \t= gpu(color=srgb)\n" 93 "\tgpusrgb \t= gpu(color=srgb)\n"
92 "\tgpudft \t= gpu(dit=true)\n" 94 "\tgpudft \t= gpu(dit=true)\n"
93 "\tgpudebug \t= gpu(api=debug)\n" 95 "\tgpudebug \t= gpu(api=debug)\n"
94 "\tgpunull \t= gpu(api=null)\n" 96 "\tgpunull \t= gpu(api=null)\n"
95 "\tdebug \t= gpu(api=debug)\n" 97 "\tdebug \t= gpu(api=debug)\n"
96 "\tnullgpu \t= gpu(api=null)\n" 98 "\tnullgpu \t= gpu(api=null)\n"
97 #if SK_ANGLE 99 #if SK_ANGLE
98 #ifdef SK_BUILD_FOR_WIN 100 #ifdef SK_BUILD_FOR_WIN
99 "\tangle \t= gpu(api=angle)\n" 101 "\tangle \t= gpu(api=angle)\n"
(...skipping 13 matching lines...) Expand all
113 115
114 static const struct { 116 static const struct {
115 const char* predefinedConfig; 117 const char* predefinedConfig;
116 const char* backend; 118 const char* backend;
117 const char* options; 119 const char* options;
118 } gPredefinedConfigs[] = { 120 } gPredefinedConfigs[] = {
119 #if SK_SUPPORT_GPU 121 #if SK_SUPPORT_GPU
120 { "gpu", "gpu", "" }, 122 { "gpu", "gpu", "" },
121 { "msaa4", "gpu", "samples=4" }, 123 { "msaa4", "gpu", "samples=4" },
122 { "msaa16", "gpu", "samples=16" }, 124 { "msaa16", "gpu", "samples=16" },
123 { "nvprmsaa4", "gpu", "nvpr=true,samples=4,dit=true" }, 125 { "nvpr4", "gpu", "nvpr=true,samples=4" },
124 { "nvprmsaa16", "gpu", "nvpr=true,samples=16,dit=true" }, 126 { "nvpr16", "gpu", "nvpr=true,samples=16" },
127 { "nvprdit4", "gpu", "nvpr=true,samples=4,dit=true" },
128 { "nvprdit16", "gpu", "nvpr=true,samples=16,dit=true" },
125 { "gpuf16", "gpu", "color=f16" }, 129 { "gpuf16", "gpu", "color=f16" },
126 { "gpusrgb", "gpu", "color=srgb" }, 130 { "gpusrgb", "gpu", "color=srgb" },
127 { "gpudft", "gpu", "dit=true" }, 131 { "gpudft", "gpu", "dit=true" },
128 { "gpudebug", "gpu", "api=debug" }, 132 { "gpudebug", "gpu", "api=debug" },
129 { "gpunull", "gpu", "api=null" }, 133 { "gpunull", "gpu", "api=null" },
130 { "debug", "gpu", "api=debug" }, 134 { "debug", "gpu", "api=debug" },
131 { "nullgpu", "gpu", "api=null" } 135 { "nullgpu", "gpu", "api=null" }
132 #if SK_ANGLE 136 #if SK_ANGLE
133 #ifdef SK_BUILD_FOR_WIN 137 #ifdef SK_BUILD_FOR_WIN
134 , { "angle", "gpu", "api=angle" } 138 , { "angle", "gpu", "api=angle" }
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « tools/dm_flags.py ('k') | tools/nanobench_flags.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698