summaryrefslogtreecommitdiff
path: root/chromium/content/gpu/gpu_child_thread.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-08-04 18:07:02 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-23 13:31:33 +0200
commitf5884c47c29bc65e6ce78b790a782e5ecf17e3b6 (patch)
tree1c2d29ec59eaca328c17b0c7342336752a48853b /chromium/content/gpu/gpu_child_thread.h
parente6fbb0a33e5d34bcdace02c0eef046a47b563fe8 (diff)
downloadqtwebengine-chromium-f5884c47c29bc65e6ce78b790a782e5ecf17e3b6.tar.gz
Add accessors and seams for the Qt delegated renderer integration.
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 <michael.bruning@theqtcompany.com> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/content/gpu/gpu_child_thread.h')
-rw-r--r--chromium/content/gpu/gpu_child_thread.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/content/gpu/gpu_child_thread.h b/chromium/content/gpu/gpu_child_thread.h
index 417035ddcb0..e75b24091ba 100644
--- a/chromium/content/gpu/gpu_child_thread.h
+++ b/chromium/content/gpu/gpu_child_thread.h
@@ -58,6 +58,12 @@ class GpuChildThread : public ChildThreadImpl,
void Init(const base::Time& process_start_time);
+ static GpuChildThread* instance() { return instance_; }
+
+ gpu::GpuChannelManager* gpu_channel_manager() {
+ return viz_main_.gpu_service()->gpu_channel_manager();
+ }
+
private:
GpuChildThread(const ChildThreadImpl::Options& options,
std::unique_ptr<gpu::GpuInit> gpu_init);
@@ -106,6 +112,8 @@ class GpuChildThread : public ChildThreadImpl,
base::WeakPtrFactory<GpuChildThread> weak_factory_;
+ static GpuChildThread* instance_;
+
DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
};