Home
last modified time | relevance | path

Searched refs:toggle (Results 1 - 25 of 38) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DToggles.cpp25 Toggle toggle; member
83 "versions of Windows prior to build 1809, or when this toggle is turned off, Dawn "
99 "backend will use D32S8 (toggle to on) but setting the toggle to off will make it"
224 "Use a dummy empty fragment shader in vertex only render pipeline. This toggle must "
234 // Dummy comment to separate the }} so it is clearer what to copy-paste to add a toggle.
238 void TogglesSet::Set(Toggle toggle, bool enabled) { in Set() argument
239 if (toggle == Toggle::DEPRECATED_DumpTranslatedShaders) { in Set()
243 ASSERT(toggle != Toggle::InvalidEnum); in Set()
244 const size_t toggleIndex = static_cast<size_t>(toggle); in Set()
270 ToggleEnumToName(Toggle toggle) ToggleEnumToName() argument
[all...]
H A DToggles.h69 // A wrapper of the bitset to store if a toggle is present or not. This wrapper provides the
74 void Set(Toggle toggle, bool enabled);
75 bool Has(Toggle toggle) const;
79 const char* ToggleEnumToName(Toggle toggle);
83 // Used to query the details of a toggle. Return nullptr if toggleName is not a valid name
84 // of a toggle supported in Dawn.
H A DDevice.cpp1572 bool DeviceBase::IsToggleEnabled(Toggle toggle) const {
1573 return mEnabledToggles.Has(toggle);
1576 void DeviceBase::SetToggle(Toggle toggle, bool isEnabled) {
1577 if (!mOverridenToggles.Has(toggle)) {
1578 mEnabledToggles.Set(toggle, isEnabled);
1582 void DeviceBase::ForceSetToggle(Toggle toggle, bool isEnabled) {
1583 if (!mOverridenToggles.Has(toggle) && mEnabledToggles.Has(toggle) != isEnabled) {
1584 dawn::WarningLog() << "Forcing toggle \"" << ToggleEnumToName(toggle) << "\" t
[all...]
H A DDevice.h316 bool IsToggleEnabled(Toggle toggle) const;
376 void SetToggle(Toggle toggle, bool isEnabled);
377 void ForceSetToggle(Toggle toggle, bool isEnabled);
/third_party/curl/src/
H A Dtool_getparam.c951 bool toggle; in set_trace_config() local
963 toggle = FALSE; in set_trace_config()
967 toggle = TRUE; in set_trace_config()
971 toggle = TRUE; in set_trace_config()
977 global->traceids = toggle; in set_trace_config()
978 global->tracetime = toggle; in set_trace_config()
984 global->traceids = toggle; in set_trace_config()
987 global->tracetime = toggle; in set_trace_config()
1221 bool toggle = TRUE; /* how to switch boolean options, on or off. Controlled in getparameter() local
1252 toggle in getparameter()
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/
H A DToggleParser.cpp27 std::string toggle; in ParseEnabledToggles() local
29 while (getline(toggles, toggle, ',')) { in ParseEnabledToggles()
30 mEnabledToggles.push_back(toggle); in ParseEnabledToggles()
41 std::string toggle; in ParseDisabledToggles() local
43 while (getline(toggles, toggle, ',')) { in ParseDisabledToggles()
44 mDisabledToggles.push_back(toggle); in ParseDisabledToggles()
H A DDawnTest.cpp590 for (const std::string& toggle : GetEnabledToggles()) { in PrintTestConfigurationAndAdapterInfo()
591 const dawn_native::ToggleInfo* info = instance->GetToggleInfo(toggle.c_str()); in PrintTestConfigurationAndAdapterInfo()
600 for (const std::string& toggle : GetDisabledToggles()) { in PrintTestConfigurationAndAdapterInfo()
601 const dawn_native::ToggleInfo* info = instance->GetToggleInfo(toggle.c_str()); in PrintTestConfigurationAndAdapterInfo()
828 bool DawnTestBase::HasToggleEnabled(const char* toggle) const { in HasToggleEnabled()
830 return std::find_if(toggles.begin(), toggles.end(), [toggle](const char* name) { in HasToggleEnabled()
831 return strcmp(toggle, name) == 0; in HasToggleEnabled()
938 for (const std::string& toggle : gTestEnv->GetEnabledToggles()) {
940 gTestEnv->GetInstance()->GetToggleInfo(toggle.c_str());
945 for (const std::string& toggle
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
H A DToggleValidationTests.cpp21 // Tests querying the detail of a toggle from dawn_native::InstanceBase works correctly.
23 // Query with a valid toggle name in TEST_F()
33 // Query with an invalid toggle name in TEST_F()
43 // Create device with a valid name of a toggle in TEST_F()
52 for (const char* toggle : toggleNames) { in TEST_F()
53 if (strcmp(toggle, kValidToggleName) == 0) { in TEST_F()
60 // Create device with an invalid toggle name in TEST_F()
69 for (const char* toggle : toggleNames) { in TEST_F()
70 if (strcmp(toggle, kInvalidToggleName) == 0) { in TEST_F()
86 for (const char* toggle in TEST_F()
[all...]
H A DValidationTest.cpp182 bool ValidationTest::HasToggleEnabled(const char* toggle) const { in HasToggleEnabled()
184 return std::find_if(toggles.begin(), toggles.end(), [toggle](const char* name) { in HasToggleEnabled()
185 return strcmp(toggle, name) == 0; in HasToggleEnabled()
201 for (const std::string& toggle : gToggleParser->GetEnabledToggles()) {
202 deviceDescriptor.forceEnabledToggles.push_back(toggle.c_str());
205 for (const std::string& toggle : gToggleParser->GetDisabledToggles()) {
206 deviceDescriptor.forceDisabledToggles.push_back(toggle.c_str());
H A DValidationTest.h128 bool HasToggleEnabled(const char* toggle) const;
/third_party/skia/tools/skiaserve/urlhandlers/
H A DCmdHandler.cpp47 int n, toggle; in handle() local
49 sscanf(commands[2].c_str(), "%d", &toggle); in handle()
50 request->fDebugCanvas->toggleCommand(n, SkToBool(toggle)); in handle()
/third_party/node/doc/api_assets/
H A Dapi.js7 const themeToggleButton = document.getElementById('theme-toggle-btn');
14 document.documentElement.classList.toggle('dark-mode', e.matches);
40 document.documentElement.classList.toggle('dark-mode'),
120 header.classList.toggle('is-pinned', newStatus);
/third_party/node/doc/api/assets/
H A Dapi.js7 const themeToggleButton = document.getElementById('theme-toggle-btn');
14 document.documentElement.classList.toggle('dark-mode', e.matches);
40 document.documentElement.classList.toggle('dark-mode'),
120 header.classList.toggle('is-pinned', newStatus);
/third_party/skia/third_party/externals/freetype/builds/amiga/src/base/
H A Dftdebug.c150 /* define array of trace toggle names */
217 * the available toggle names.
243 /* read toggle name, followed by ':' */ in ft_debug_init()
259 const char* toggle = ft_trace_toggles[n]; in ft_debug_init() local
264 if ( toggle[i] != q[i] ) in ft_debug_init()
268 if ( i == len && toggle[i] == 0 ) in ft_debug_init()
/third_party/skia/third_party/externals/freetype/builds/wince/
H A Dftdebug.c151 /* define array of trace toggle names */
218 * the available toggle names.
248 /* read toggle name, followed by ':' */ in ft_debug_init()
264 const char* toggle = ft_trace_toggles[n]; in ft_debug_init() local
269 if ( toggle[i] != q[i] ) in ft_debug_init()
273 if ( i == len && toggle[i] == 0 ) in ft_debug_init()
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_codecontext.py140 toggle = cc.toggle_code_context_event
144 toggle()
147 toggle()
157 toggle()
162 # Scroll down and toggle back on.
165 toggle()
169 toggle()
170 toggle()
/third_party/skia/samplecode/
H A DSamplePath.cpp242 void toggle(bool& value) { in toggle() function in ArcToView
251 case '1': this->toggle(fDoFrame); return true;
252 case '2': this->toggle(fDoCorner); return true;
253 case '3': this->toggle(fDoConic); return true;
341 void toggle(bool& value) { in toggle() function in __anon18642
354 case '1': this->toggle(fShowSkeleton); return true;
355 case '2': this->toggle(fShowStroke); return true;
356 case '3': this->toggle(fShowHidden); return true;
359 case '6': this->toggle(fClosed); return true;
360 case 'c': this->toggle(fAsCurve
[all...]
H A DSampleSimpleStroker.cpp389 void toggle(bool& value) { value = !value; } in toggle() function in SimpleStroker
397 this->toggle(fShowSkeleton);
400 this->toggle(fShowSkiaStroke);
403 this->toggle(fShowHidden);
H A DSampleVariableWidthStroker.cpp1084 this->toggle(fShowUI);
1087 this->toggle(fShowSkeleton);
1090 this->toggle(fShowHidden);
1093 this->toggle(fShowStrokePoints);
1096 this->toggle(fShowErrorCurve);
1099 this->toggle(fLengthMetric);
1116 void toggle(bool& value) { value = !value; }
1117 void toggle(SkVarWidthStroker::LengthMetric& value) {
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
H A DEGLFeatureControlTest.cpp131 // Build lists of features to enable/disabled. Toggle features we know are ok to toggle based in TEST_P()
137 "add_and_true_to_loop_condition", // Safe to toggle GL in TEST_P()
138 "clamp_frag_depth", // Safe to toggle GL in TEST_P()
139 "clamp_point_size", // Safe to toggle GL and Vulkan in TEST_P()
140 "flip_viewport_y", // Safe to toggle on Vulkan in TEST_P()
141 "zero_max_lod", // Safe to toggle on D3D in TEST_P()
142 "expand_integer_pow_expressions", // Safe to toggle on D3D in TEST_P()
143 "rewrite_unary_minus_operator", // Safe to toggle on D3D in TEST_P()
147 bool toggle = std::find(testedFeatures.begin(), testedFeatures.end(), in TEST_P() local
149 if (features[i]->enabled ^ toggle) in TEST_P()
[all...]
/third_party/skia/third_party/externals/freetype/src/base/
H A Dftdebug.c168 /* define array of trace toggle names */
235 * the available toggle names.
310 /* read toggle name, followed by ':' */ in ft_debug_init()
326 const char* toggle = ft_trace_toggles[n]; in ft_debug_init() local
331 if ( toggle[i] != q[i] ) in ft_debug_init()
335 if ( i == len && toggle[i] == 0 ) in ft_debug_init()
/third_party/skia/third_party/externals/freetype/builds/windows/
H A Dftdebug.c181 /* define array of trace toggle names */
248 * the available toggle names.
323 /* read toggle name, followed by ':' */ in ft_debug_init()
339 const char* toggle = ft_trace_toggles[n]; in ft_debug_init() local
344 if ( toggle[i] != q[i] ) in ft_debug_init()
348 if ( i == len && toggle[i] == 0 ) in ft_debug_init()
/third_party/ffmpeg/libavutil/tests/
H A Dopt.c34 int toggle; member
70 {"toggle", "set toggle", OFFSET(toggle), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 1, 1 },
130 printf("toggle=%d\n", test_ctx.toggle); in main()
254 "toggle=:", in main()
256 "toggle=1 : foo", in main()
257 "toggle=100", in main()
258 "toggle in main()
[all...]
/third_party/python/Tools/demo/
H A Dlife.py36 toggle(y,x) -- change the given cell from live to dead, or vice
68 def toggle(self, y, x): member in LifeBoard
160 'Use the cursor keys to move, and space or Enter to toggle a cell.')
201 board.toggle(ypos, xpos)
249 board.toggle(ypos, xpos)
/third_party/popt/src/
H A Dpopthelp.c328 const char *toggle; in singleOptionHelp() local
330 toggle = "[no]"; in singleOptionHelp()
337 toggle = ""; in singleOptionHelp()
338 (void) stpcpy(stpcpy(stpcpy(stpcpy(left, " "), dash), toggle), longName); in singleOptionHelp()

Completed in 30 milliseconds

12