cefclient: Set recommended command-line switches for off-screen rendering

This commit is contained in:
Marshall Greenblatt
2015-08-17 18:14:59 -04:00
parent 4b491c3a77
commit aef9fd486a
4 changed files with 42 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ class ClientAppBrowser : public ClientApp,
static CefRefPtr<CefPrintHandler> CreatePrintHandler();
// CefApp methods.
void OnBeforeCommandLineProcessing(
const CefString& process_type,
CefRefPtr<CefCommandLine> command_line) OVERRIDE;
CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler() OVERRIDE {
return this;
}