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

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

Issue 2676543003: gpu: Some code cleanup after r445649. (Closed)
Patch Set: tot merge Created 3 years, 10 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 const std::string& key, 202 const std::string& key,
203 const std::string& shader) override; 203 const std::string& shader) override;
204 204
205 // Message handlers. 205 // Message handlers.
206 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info); 206 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info);
207 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); 207 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle);
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(int surface_id);
211 #endif 211 #endif
212 void OnDidCreateOffscreenContext(const GURL& url);
213 void OnDidLoseContext(bool offscreen,
214 gpu::error::ContextLostReason reason,
215 const GURL& url);
216 void OnDidDestroyOffscreenContext(const GURL& url);
217 void OnFieldTrialActivated(const std::string& trial_name); 212 void OnFieldTrialActivated(const std::string& trial_name);
218 213
219 #if defined(OS_WIN)
220 void OnAcceleratedSurfaceCreatedChildWindow(
221 gpu::SurfaceHandle parent_handle,
222 gpu::SurfaceHandle window_handle);
223 #endif
224
225 void CreateChannelCache(int32_t client_id); 214 void CreateChannelCache(int32_t client_id);
226 void OnDestroyChannel(int32_t client_id);
227 void OnCacheShader(int32_t client_id,
228 const std::string& key,
229 const std::string& shader);
230 215
231 bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences); 216 bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences);
232 217
233 void SendOutstandingReplies(); 218 void SendOutstandingReplies();
234 219
235 void BlockLiveOffscreenContexts(); 220 void BlockLiveOffscreenContexts();
236 221
237 // Update GPU crash counters. Disable GPU if crash limit is reached. 222 // Update GPU crash counters. Disable GPU if crash limit is reached.
238 void RecordProcessCrash(); 223 void RecordProcessCrash();
239 224
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 ui::mojom::GpuMainAssociatedPtr gpu_main_ptr_; 295 ui::mojom::GpuMainAssociatedPtr gpu_main_ptr_;
311 ui::mojom::GpuServicePtr gpu_service_ptr_; 296 ui::mojom::GpuServicePtr gpu_service_ptr_;
312 mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_; 297 mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_;
313 298
314 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 299 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
315 }; 300 };
316 301
317 } // namespace content 302 } // namespace content
318 303
319 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 304 #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