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

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

Issue 2104553002: Migrate GpuProcess to use MojoChild/ShellConnection for the Shell handshake (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
« no previous file with comments | « content/content_resources.gypi ('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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void Init(const base::Time& process_start_time); 79 void Init(const base::Time& process_start_time);
80 void StopWatchdog(); 80 void StopWatchdog();
81 81
82 gpu::GpuPreferences gpu_preferences() { return gpu_preferences_; } 82 gpu::GpuPreferences gpu_preferences() { return gpu_preferences_; }
83 83
84 private: 84 private:
85 // ChildThreadImpl:. 85 // ChildThreadImpl:.
86 bool Send(IPC::Message* msg) override; 86 bool Send(IPC::Message* msg) override;
87 bool OnControlMessageReceived(const IPC::Message& msg) override; 87 bool OnControlMessageReceived(const IPC::Message& msg) override;
88 bool OnMessageReceived(const IPC::Message& msg) override; 88 bool OnMessageReceived(const IPC::Message& msg) override;
89 bool AcceptConnection(shell::Connection* connection) override;
90 shell::InterfaceRegistry* GetInterfaceRegistryForConnection() override;
91 shell::InterfaceProvider* GetInterfaceProviderForConnection() 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;
95 void DidLoseContext(bool offscreen, 98 void DidLoseContext(bool offscreen,
96 gpu::error::ContextLostReason reason, 99 gpu::error::ContextLostReason reason,
97 const GURL& active_url) override; 100 const GURL& active_url) override;
98 void GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) override; 101 void GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) override;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 177
175 // Bindings to the mojom::ProcessControl impl. 178 // Bindings to the mojom::ProcessControl impl.
176 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; 179 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_;
177 180
178 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 181 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
179 }; 182 };
180 183
181 } // namespace content 184 } // namespace content
182 185
183 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 186 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/content_resources.gypi ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698