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

Side by Side Diff: content/browser/gpu/gpu_process_host.h

Issue 2848643002: Revert of gpu: Completely remove GpuProcessHostUIShim. (Closed)
Patch Set: Created 3 years, 7 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/browser/browser_main_loop.cc ('k') | content/browser/gpu/gpu_process_host.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_BROWSER_GPU_GPU_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 private: 166 private:
167 class ConnectionFilterImpl; 167 class ConnectionFilterImpl;
168 168
169 static bool ValidateHost(GpuProcessHost* host); 169 static bool ValidateHost(GpuProcessHost* host);
170 170
171 GpuProcessHost(int host_id, GpuProcessKind kind); 171 GpuProcessHost(int host_id, GpuProcessKind kind);
172 ~GpuProcessHost() override; 172 ~GpuProcessHost() override;
173 173
174 bool Init(); 174 bool Init();
175 175
176 // Post an IPC message to the UI shim's message handler on the UI thread.
177 void RouteOnUIThread(const IPC::Message& message);
178
176 // BrowserChildProcessHostDelegate implementation. 179 // BrowserChildProcessHostDelegate implementation.
177 bool OnMessageReceived(const IPC::Message& message) override; 180 bool OnMessageReceived(const IPC::Message& message) override;
178 void OnChannelConnected(int32_t peer_pid) override; 181 void OnChannelConnected(int32_t peer_pid) override;
179 void OnProcessLaunched() override; 182 void OnProcessLaunched() override;
180 void OnProcessLaunchFailed(int error_code) override; 183 void OnProcessLaunchFailed(int error_code) override;
181 void OnProcessCrashed(int exit_code) override; 184 void OnProcessCrashed(int exit_code) override;
182 185
183 // ui::mojom::GpuHost: 186 // ui::mojom::GpuHost:
184 void DidInitialize(const gpu::GPUInfo& gpu_info, 187 void DidInitialize(const gpu::GPUInfo& gpu_info,
185 const gpu::GpuFeatureInfo& gpu_feature_info) override; 188 const gpu::GpuFeatureInfo& gpu_feature_info) override;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 gpu::GpuProcessHostActivityFlags activity_flags_; 300 gpu::GpuProcessHostActivityFlags activity_flags_;
298 301
299 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; 302 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
300 303
301 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 304 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
302 }; 305 };
303 306
304 } // namespace content 307 } // namespace content
305 308
306 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 309 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698