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

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

Issue 2723163002: gpu: Replace more chrome ipc with mojom api. (Closed)
Patch Set: . Created 3 years, 9 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 | « no previous file | 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 void OnChannelEstablished(int client_id, 200 void OnChannelEstablished(int client_id,
201 const EstablishChannelCallback& callback, 201 const EstablishChannelCallback& callback,
202 mojo::ScopedMessagePipeHandle channel_handle); 202 mojo::ScopedMessagePipeHandle channel_handle);
203 203
204 // Message handlers. 204 // Message handlers.
205 void OnInitialized(bool result, 205 void OnInitialized(bool result,
206 const gpu::GPUInfo& gpu_info, 206 const gpu::GPUInfo& gpu_info,
207 const gpu::GpuFeatureInfo& gpu_feature_info); 207 const gpu::GpuFeatureInfo& gpu_feature_info);
208 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); 208 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
209 #if defined(OS_ANDROID) 209 #if defined(OS_ANDROID)
210 void OnDestroyingVideoSurfaceAck(int surface_id); 210 void OnDestroyingVideoSurfaceAck();
211 #endif 211 #endif
212 void OnFieldTrialActivated(const std::string& trial_name); 212 void OnFieldTrialActivated(const std::string& trial_name);
213 213
214 void CreateChannelCache(int32_t client_id); 214 void CreateChannelCache(int32_t client_id);
215 215
216 bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences); 216 bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences);
217 217
218 void SendOutstandingReplies(); 218 void SendOutstandingReplies();
219 219
220 void BlockLiveOffscreenContexts(); 220 void BlockLiveOffscreenContexts();
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_; 297 mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_;
298 298
299 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; 299 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
300 300
301 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 301 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
302 }; 302 };
303 303
304 } // namespace content 304 } // namespace content
305 305
306 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 306 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698