diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/web_engine_context.cpp | 5 | ||||
-rw-r--r-- | src/core/web_engine_context.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index a1c647f40..0763b9dac 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -270,6 +270,8 @@ WebEngineContext *WebEngineContext::current() qAddPostRoutine(WebEngineContext::destroyContextPostRoutine); // Add a false reference so there is no race between unreferencing m_handle and a global QApplication. m_handle->AddRef(); + // This is need since gpu process start requires sync point manager; + m_handle->initialize(); } return m_handle.get(); } @@ -329,6 +331,9 @@ WebEngineContext::WebEngineContext() : m_mainDelegate(new ContentMainDelegateQt) , m_globalQObject(new QObject()) , m_syncPointManager(new gpu::SyncPointManager()) +{} + +void WebEngineContext::initialize() { base::TaskScheduler::Create("Browser"); m_contentRunner.reset(content::ContentMainRunner::Create()); diff --git a/src/core/web_engine_context.h b/src/core/web_engine_context.h index f588918a7..647f28f55 100644 --- a/src/core/web_engine_context.h +++ b/src/core/web_engine_context.h @@ -90,6 +90,7 @@ public: #if QT_CONFIG(webengine_printing_and_pdf) printing::PrintJobManager* getPrintJobManager(); #endif + void initialize(); void destroyBrowserContext(); void addBrowserContext(ProfileAdapter *profileAdapter); void removeBrowserContext(ProfileAdapter *profileAdapter); |