diff options
author | Michal Klocek <michal.klocek@qt.io> | 2023-01-18 23:24:37 +0100 |
---|---|---|
committer | Michael BrĂ¼ning <michael.bruning@qt.io> | 2023-01-25 12:40:49 +0000 |
commit | be1ee6225d050ffda153b19f9ff2b12f7b60b7d8 (patch) | |
tree | 770c1713301caf00fd0586ea6b23ae18a602e4a9 /chromium/content/public | |
parent | 0b138dc30d0aec7930c76a2595065629948ad9f7 (diff) | |
download | qtwebengine-chromium-be1ee6225d050ffda153b19f9ff2b12f7b60b7d8.tar.gz |
Drop dependency on content/public/browser in content gpu
We include header from content/public/browser which includes
generated headers, however we do not have that dependency
on content gpu. This creates build race condition as generated
headers might to be in place. Unfortunately adding that dependency
causes some gn asserts, as this dependency should not be allowed.
Therefore, move GetInProcessGpuShareGroup from browser content
to gpu content, where it make more sense.
Change-Id: I9dfc37ddf7466ca7b431a31b379e811583790467
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/455058
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
(cherry picked from commit 406715225b17b2cf4204f17b9b651bef5d397392)
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/455128
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/content/public')
-rw-r--r-- | chromium/content/public/browser/content_browser_client.h | 8 | ||||
-rw-r--r-- | chromium/content/public/gpu/content_gpu_client.cc | 4 | ||||
-rw-r--r-- | chromium/content/public/gpu/content_gpu_client.h | 7 |
3 files changed, 11 insertions, 8 deletions
diff --git a/chromium/content/public/browser/content_browser_client.h b/chromium/content/public/browser/content_browser_client.h index 853b4588d06..290c71951ed 100644 --- a/chromium/content/public/browser/content_browser_client.h +++ b/chromium/content/public/browser/content_browser_client.h @@ -119,10 +119,6 @@ namespace gfx { class ImageSkia; } // namespace gfx -namespace gl { -class GLShareGroup; -} - namespace media { class AudioLogFactory; class AudioManager; @@ -1144,10 +1140,6 @@ class CONTENT_EXPORT ContentBrowserClient { std::vector<std::unique_ptr<storage::FileSystemBackend>>* 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<content::DevToolsManagerDelegate> CreateDevToolsManagerDelegate(); diff --git a/chromium/content/public/gpu/content_gpu_client.cc b/chromium/content/public/gpu/content_gpu_client.cc index 905b69c2e3c..3f297e3551e 100644 --- a/chromium/content/public/gpu/content_gpu_client.cc +++ b/chromium/content/public/gpu/content_gpu_client.cc @@ -23,4 +23,8 @@ ContentGpuClient::GetVizCompositorThreadRunner() { return nullptr; } +gl::GLShareGroup* ContentGpuClient::GetInProcessGpuShareGroup() { + return nullptr; +} + } // namespace content diff --git a/chromium/content/public/gpu/content_gpu_client.h b/chromium/content/public/gpu/content_gpu_client.h index 3020e59f491..77ca2032a6f 100644 --- a/chromium/content/public/gpu/content_gpu_client.h +++ b/chromium/content/public/gpu/content_gpu_client.h @@ -19,6 +19,10 @@ class SharedImageManager; class SyncPointManager; } +namespace gl { +class GLShareGroup; +} + namespace viz { class VizCompositorThreadRunner; } @@ -55,6 +59,9 @@ class CONTENT_EXPORT ContentGpuClient { virtual gpu::SharedImageManager* GetSharedImageManager(); virtual gpu::Scheduler* GetScheduler(); virtual viz::VizCompositorThreadRunner* GetVizCompositorThreadRunner(); + // Allow an embedder to provide a share group reimplementation to connect renderer + // GL contexts with the root compositor. + virtual gl::GLShareGroup* GetInProcessGpuShareGroup(); }; } // namespace content |