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.h | |
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.h')
-rw-r--r-- | src/core/web_engine_context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/web_engine_context.h b/src/core/web_engine_context.h index cca14194d..f588918a7 100644 --- a/src/core/web_engine_context.h +++ b/src/core/web_engine_context.h @@ -59,6 +59,7 @@ class InProcessChildThreadParams; namespace gpu { struct GpuPreferences; +class SyncPointManager; } #if QT_CONFIG(webengine_printing_and_pdf) @@ -94,6 +95,8 @@ public: void removeBrowserContext(ProfileAdapter *profileAdapter); void destroy(); + gpu::SyncPointManager *syncPointManager(); + private: friend class base::RefCounted<WebEngineContext>; friend class ProfileAdapter; @@ -110,6 +113,7 @@ private: std::unique_ptr<QObject> m_globalQObject; std::unique_ptr<ProfileAdapter> m_defaultProfileAdapter; std::unique_ptr<DevToolsServerQt> m_devtoolsServer; + std::unique_ptr<gpu::SyncPointManager> m_syncPointManager; QVector<ProfileAdapter*> m_profileAdapters; #if QT_CONFIG(webengine_printing_and_pdf) |