diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-11-14 11:33:16 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-11-24 11:31:31 +0000 |
commit | da861ec8536e47eb80136bdd91d4c654b1fca245 (patch) | |
tree | cd1cd70b1b2c4a9a8cf9f9d044ba257c32749c71 /src/core/web_engine_context.cpp | |
parent | e25151a705bad0db733c2958f57ff49c252777df (diff) |
Implement ContentGpuClient for WebEngine
This is the way we are supposed to share a sync point manager with the
content layer.
Change-Id: I595caa863f8b9c8b4f4bc17df76211416a027a12
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Reviewed-by: Michael Brüning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/web_engine_context.cpp')
-rw-r--r-- | src/core/web_engine_context.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index e88c5af19..a1c647f40 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -328,6 +328,7 @@ static void appendToFeatureSwitch(base::CommandLine *commandLine, const char *fe WebEngineContext::WebEngineContext() : m_mainDelegate(new ContentMainDelegateQt) , m_globalQObject(new QObject()) + , m_syncPointManager(new gpu::SyncPointManager()) { base::TaskScheduler::Create("Browser"); m_contentRunner.reset(content::ContentMainRunner::Create()); @@ -612,4 +613,9 @@ printing::PrintJobManager* WebEngineContext::getPrintJobManager() } #endif +gpu::SyncPointManager *WebEngineContext::syncPointManager() +{ + return m_syncPointManager.get(); +} + } // namespace |