We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 575f16a commit ca85608Copy full SHA for ca85608
shared/browser-app.cpp
@@ -37,12 +37,16 @@ void BrowserApp::OnBeforeCommandLineProcessing(
37
const CefString& process_type,
38
CefRefPtr<CefCommandLine> command_line)
39
{
40
- bool enablegpu = command_line->HasSwitch("enable-gpu");
41
- command_line->AppendSwitch("enable-system-flash");
42
- if (!enablegpu)
+ bool enableGPU = command_line->HasSwitch("enable-gpu");
+
+ CefString type = command_line->GetSwitchValue("type");
43
44
+ if (!enableGPU && type.empty())
45
46
command_line->AppendSwitch("disable-gpu");
47
command_line->AppendSwitch("disable-gpu-compositing");
48
}
49
command_line->AppendSwitch("enable-begin-frame-scheduling");
50
51
+ command_line->AppendSwitch("enable-system-flash");
52
0 commit comments