From 8bdaf36f9d64b119bd8a065c165f4aa0d9c70804 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Thu, 4 Aug 2016 18:07:02 +0200 Subject: Add accessors and seams for the Qt delegated renderer integration. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is needed to fetch the MessageLoop, the MailboxManager and the SyncPointManager of the GPU in-process host. And fetch the right shared context for the in GPU thread. Change-Id: I7f38e32b2df11da5b046f16643841d34260c11fb Reviewed-by: Michael BrĂ¼ning Reviewed-by: Alexandru Croitor Reviewed-by: Allan Sandfeld Jensen --- chromium/content/public/browser/content_browser_client.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chromium/content/public') diff --git a/chromium/content/public/browser/content_browser_client.h b/chromium/content/public/browser/content_browser_client.h index 9b6c2b8b249..d7710ef2d44 100644 --- a/chromium/content/public/browser/content_browser_client.h +++ b/chromium/content/public/browser/content_browser_client.h @@ -119,6 +119,10 @@ namespace gfx { class ImageSkia; } // namespace gfx +namespace gl { +class GLShareGroup; +} + namespace media { class AudioLogFactory; class AudioManager; @@ -1140,6 +1144,10 @@ class CONTENT_EXPORT ContentBrowserClient { std::vector>* additional_backends) {} + // Allow an embedder to provide a share group reimplementation to connect renderer + // GL contexts with the root compositor. + virtual gl::GLShareGroup* GetInProcessGpuShareGroup() { return nullptr; } + // Creates a new DevToolsManagerDelegate. It's valid to return nullptr. virtual std::unique_ptr CreateDevToolsManagerDelegate(); -- cgit v1.2.1