-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.cpp
28 lines (22 loc) · 928 Bytes
/
app.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "app.hpp"
#include "browser_process_handler.hpp"
//////////////////////////////////////////////////////////////////////////
app::app(event *pEventDoWork) : m_apBrowserProcessHandler(new browser_process_handler(pEventDoWork))
{}
//////////////////////////////////////////////////////////////////////////
app::~app() = default;
//////////////////////////////////////////////////////////////////////////
void app::OnBeforeCommandLineProcessing(const CefString &process_type, CefRefPtr<CefCommandLine> command_line)
{
if (process_type.empty())
{
command_line->AppendSwitch("disable-gpu");
command_line->AppendSwitch("disable-gpu-compositing");
command_line->AppendSwitch("disable-gpu-vsync");
}
}
//////////////////////////////////////////////////////////////////////////
CefRefPtr<CefBrowserProcessHandler> app::GetBrowserProcessHandler()
{
return m_apBrowserProcessHandler;
}