Lines Matching refs:command_line

9 #include "base/command_line.h"
116 const base::CommandLine& command_line =
155 command_line.HasSwitch(switches::kDisableAccelerated2dCanvas),
156 command_line.HasSwitch(switches::kDisableGpu),
157 command_line.HasSwitch(switches::kDisableExperimentalWebGL), };
327 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
328 if (command_line->HasSwitch(switches::kDisableGpu))
498 const base::CommandLine* command_line =
500 if (command_line->HasSwitch(switches::kSkipGpuDataLoading))
504 if (command_line->GetSwitchValueASCII(
533 if (!command_line->HasSwitch(switches::kIgnoreGpuBlacklist) &&
534 !command_line->HasSwitch(switches::kUseGpuInTests)) {
537 if (!command_line->HasSwitch(switches::kDisableGpuDriverBugWorkarounds)) {
587 base::CommandLine* command_line) const {
588 DCHECK(command_line);
591 !command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode))
592 command_line->AppendSwitch(switches::kDisableAcceleratedVideoDecode);
595 !command_line->HasSwitch(switches::kDisableWebRtcHWEncoding))
596 command_line->AppendSwitch(switches::kDisableWebRtcHWEncoding);
601 command_line->AppendSwitch(switches::kDisableGpuCompositing);
606 base::CommandLine* command_line) const {
607 DCHECK(command_line);
616 command_line->AppendSwitch(switches::kDisableD3D11);
618 command_line->AppendSwitchASCII(switches::kUseGL, "swiftshader");
626 command_line->AppendSwitchASCII(
629 command_line->AppendSwitchASCII(switches::kUseGL, use_gl);
632 command_line->AppendSwitchASCII(switches::kSupportsDualGpus, "true");
634 command_line->AppendSwitchASCII(switches::kSupportsDualGpus, "false");
637 command_line->AppendSwitchPath(switches::kSwiftShaderPath,
642 command_line->AppendSwitchASCII(switches::kGpuDriverBugWorkarounds,
647 !command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode)) {
648 command_line->AppendSwitch(switches::kDisableAcceleratedVideoDecode);
652 !command_line->HasSwitch(switches::kDisableWebRtcHWEncoding)) {
653 command_line->AppendSwitch(switches::kDisableWebRtcHWEncoding);
661 command_line->AppendSwitchASCII(switches::kGpuVendorID,
663 command_line->AppendSwitchASCII(switches::kGpuDeviceID,
665 command_line->AppendSwitchASCII(switches::kGpuDriverVendor,
667 command_line->AppendSwitchASCII(switches::kGpuDriverVersion,
671 command_line->AppendSwitch(switches::kUseWarp);
675 base::CommandLine* command_line) const {
676 DCHECK(command_line);
683 if (!command_line->HasSwitch(
685 command_line->AppendSwitch(
902 const base::CommandLine* command_line =
904 if (command_line->HasSwitch(switches::kDisableGpu))
913 if (command_line->HasSwitch(switches::kDisableDomainBlockingFor3DAPIs)) {