Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: content/gpu/gpu_child_thread.h

Issue 2625933002: content/gpu: Set up a mojom connection between browser and gpu. (Closed)
Patch Set: tot merge Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/gpu/DEPS ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_ 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 10 matching lines...) Expand all
21 #include "content/child/child_thread_impl.h" 21 #include "content/child/child_thread_impl.h"
22 #include "gpu/command_buffer/service/gpu_preferences.h" 22 #include "gpu/command_buffer/service/gpu_preferences.h"
23 #include "gpu/config/gpu_info.h" 23 #include "gpu/config/gpu_info.h"
24 #include "gpu/ipc/service/gpu_channel.h" 24 #include "gpu/ipc/service/gpu_channel.h"
25 #include "gpu/ipc/service/gpu_channel_manager.h" 25 #include "gpu/ipc/service/gpu_channel_manager.h"
26 #include "gpu/ipc/service/gpu_channel_manager_delegate.h" 26 #include "gpu/ipc/service/gpu_channel_manager_delegate.h"
27 #include "gpu/ipc/service/gpu_config.h" 27 #include "gpu/ipc/service/gpu_config.h"
28 #include "gpu/ipc/service/x_util.h" 28 #include "gpu/ipc/service/x_util.h"
29 #include "mojo/public/cpp/bindings/binding_set.h" 29 #include "mojo/public/cpp/bindings/binding_set.h"
30 #include "services/service_manager/public/interfaces/service_factory.mojom.h" 30 #include "services/service_manager/public/interfaces/service_factory.mojom.h"
31 #include "services/ui/gpu/interfaces/gpu_main.mojom.h"
31 #include "ui/gfx/native_widget_types.h" 32 #include "ui/gfx/native_widget_types.h"
32 33
33 namespace gpu { 34 namespace gpu {
34 class GpuMemoryBufferFactory; 35 class GpuMemoryBufferFactory;
35 class GpuWatchdogThread; 36 class GpuWatchdogThread;
36 class SyncPointManager; 37 class SyncPointManager;
37 } 38 }
38 39
39 namespace media { 40 namespace media {
40 class MediaGpuChannelManager; 41 class MediaGpuChannelManager;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 76
76 ~GpuChildThread() override; 77 ~GpuChildThread() override;
77 78
78 void Shutdown() override; 79 void Shutdown() override;
79 80
80 void Init(const base::Time& process_start_time); 81 void Init(const base::Time& process_start_time);
81 82
82 gpu::GpuWatchdogThread* watchdog_thread() { return watchdog_thread_.get(); } 83 gpu::GpuWatchdogThread* watchdog_thread() { return watchdog_thread_.get(); }
83 84
84 private: 85 private:
86 void CreateGpuMainService(ui::mojom::GpuMainAssociatedRequest request);
87
85 // ChildThreadImpl:. 88 // ChildThreadImpl:.
86 bool Send(IPC::Message* msg) override; 89 bool Send(IPC::Message* msg) override;
87 bool OnControlMessageReceived(const IPC::Message& msg) override; 90 bool OnControlMessageReceived(const IPC::Message& msg) override;
88 bool OnMessageReceived(const IPC::Message& msg) override; 91 bool OnMessageReceived(const IPC::Message& msg) override;
89 92
90 // gpu::GpuChannelManagerDelegate: 93 // gpu::GpuChannelManagerDelegate:
91 void SetActiveURL(const GURL& url) override; 94 void SetActiveURL(const GURL& url) override;
92 void DidCreateOffscreenContext(const GURL& active_url) override; 95 void DidCreateOffscreenContext(const GURL& active_url) override;
93 void DidDestroyChannel(int client_id) override; 96 void DidDestroyChannel(int client_id) override;
94 void DidDestroyOffscreenContext(const GURL& active_url) override; 97 void DidDestroyOffscreenContext(const GURL& active_url) override;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Bindings to the service_manager::mojom::ServiceFactory impl. 174 // Bindings to the service_manager::mojom::ServiceFactory impl.
172 mojo::BindingSet<service_manager::mojom::ServiceFactory> 175 mojo::BindingSet<service_manager::mojom::ServiceFactory>
173 service_factory_bindings_; 176 service_factory_bindings_;
174 177
175 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 178 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
176 }; 179 };
177 180
178 } // namespace content 181 } // namespace content
179 182
180 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 183 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/gpu/DEPS ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698