| OLD | NEW |
| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 gpu::SurfaceHandle parent_handle, | 204 gpu::SurfaceHandle parent_handle, |
| 205 gpu::SurfaceHandle window_handle); | 205 gpu::SurfaceHandle window_handle); |
| 206 #endif | 206 #endif |
| 207 | 207 |
| 208 void CreateChannelCache(int32_t client_id); | 208 void CreateChannelCache(int32_t client_id); |
| 209 void OnDestroyChannel(int32_t client_id); | 209 void OnDestroyChannel(int32_t client_id); |
| 210 void OnCacheShader(int32_t client_id, | 210 void OnCacheShader(int32_t client_id, |
| 211 const std::string& key, | 211 const std::string& key, |
| 212 const std::string& shader); | 212 const std::string& shader); |
| 213 | 213 |
| 214 bool LaunchGpuProcess(const std::string& channel_id); | 214 bool LaunchGpuProcess(const std::string& channel_id, |
| 215 gpu::GpuPreferences* gpu_preferences); |
| 215 | 216 |
| 216 void SendOutstandingReplies(); | 217 void SendOutstandingReplies(); |
| 217 | 218 |
| 218 void BlockLiveOffscreenContexts(); | 219 void BlockLiveOffscreenContexts(); |
| 219 | 220 |
| 220 // Update GPU crash counters. Disable GPU if crash limit is reached. | 221 // Update GPU crash counters. Disable GPU if crash limit is reached. |
| 221 void RecordProcessCrash(); | 222 void RecordProcessCrash(); |
| 222 | 223 |
| 223 std::string GetShaderPrefixKey(); | 224 std::string GetShaderPrefixKey(); |
| 224 | 225 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // Browser-side Mojo endpoint which sets up a Mojo channel with the child | 295 // Browser-side Mojo endpoint which sets up a Mojo channel with the child |
| 295 // process and contains the browser's ServiceRegistry. | 296 // process and contains the browser's ServiceRegistry. |
| 296 scoped_ptr<MojoApplicationHost> mojo_application_host_; | 297 scoped_ptr<MojoApplicationHost> mojo_application_host_; |
| 297 | 298 |
| 298 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 299 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 299 }; | 300 }; |
| 300 | 301 |
| 301 } // namespace content | 302 } // namespace content |
| 302 | 303 |
| 303 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 304 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |