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

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

Issue 2111353002: Move content's shell connections to the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void Init(const base::Time& process_start_time); 80 void Init(const base::Time& process_start_time);
81 void StopWatchdog(); 81 void StopWatchdog();
82 82
83 gpu::GpuPreferences gpu_preferences() { return gpu_preferences_; } 83 gpu::GpuPreferences gpu_preferences() { return gpu_preferences_; }
84 84
85 private: 85 private:
86 // ChildThreadImpl:. 86 // ChildThreadImpl:.
87 bool Send(IPC::Message* msg) override; 87 bool Send(IPC::Message* msg) override;
88 bool OnControlMessageReceived(const IPC::Message& msg) override; 88 bool OnControlMessageReceived(const IPC::Message& msg) override;
89 bool OnMessageReceived(const IPC::Message& msg) override; 89 bool OnMessageReceived(const IPC::Message& msg) override;
90 bool AcceptConnection(shell::Connection* connection) override;
91 shell::InterfaceRegistry* GetInterfaceRegistryForConnection() override;
92 shell::InterfaceProvider* GetInterfaceProviderForConnection() override;
93 90
94 // gpu::GpuChannelManagerDelegate: 91 // gpu::GpuChannelManagerDelegate:
95 void SetActiveURL(const GURL& url) override; 92 void SetActiveURL(const GURL& url) override;
96 void DidCreateOffscreenContext(const GURL& active_url) override; 93 void DidCreateOffscreenContext(const GURL& active_url) override;
97 void DidDestroyChannel(int client_id) override; 94 void DidDestroyChannel(int client_id) override;
98 void DidDestroyOffscreenContext(const GURL& active_url) override; 95 void DidDestroyOffscreenContext(const GURL& active_url) override;
99 void DidLoseContext(bool offscreen, 96 void DidLoseContext(bool offscreen,
100 gpu::error::ContextLostReason reason, 97 gpu::error::ContextLostReason reason,
101 const GURL& active_url) override; 98 const GURL& active_url) override;
102 void GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) override; 99 void GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) override;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 169
173 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. 170 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers.
174 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; 171 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
175 172
176 // Process control for Mojo application hosting. 173 // Process control for Mojo application hosting.
177 std::unique_ptr<GpuProcessControlImpl> process_control_; 174 std::unique_ptr<GpuProcessControlImpl> process_control_;
178 175
179 // Bindings to the mojom::ProcessControl impl. 176 // Bindings to the mojom::ProcessControl impl.
180 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; 177 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_;
181 178
182 base::Closure resume_interface_bindings_callback_;
183
184 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 179 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
185 }; 180 };
186 181
187 } // namespace content 182 } // namespace content
188 183
189 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 184 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698