| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences); | 213 bool LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences); |
| 214 | 214 |
| 215 void SendOutstandingReplies(); | 215 void SendOutstandingReplies(); |
| 216 | 216 |
| 217 void BlockLiveOffscreenContexts(); | 217 void BlockLiveOffscreenContexts(); |
| 218 | 218 |
| 219 // Update GPU crash counters. Disable GPU if crash limit is reached. | 219 // Update GPU crash counters. Disable GPU if crash limit is reached. |
| 220 void RecordProcessCrash(); | 220 void RecordProcessCrash(); |
| 221 | 221 |
| 222 std::string GetShaderPrefixKey(); | 222 std::string GetShaderPrefixKey(const std::string& shader); |
| 223 | 223 |
| 224 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. | 224 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. |
| 225 int host_id_; | 225 int host_id_; |
| 226 | 226 |
| 227 // These are the channel requests that we have already sent to | 227 // These are the channel requests that we have already sent to |
| 228 // the GPU process, but haven't heard back about yet. | 228 // the GPU process, but haven't heard back about yet. |
| 229 std::queue<EstablishChannelRequest> channel_requests_; | 229 std::queue<EstablishChannelRequest> channel_requests_; |
| 230 | 230 |
| 231 // The pending create gpu memory buffer requests we need to reply to. | 231 // The pending create gpu memory buffer requests we need to reply to. |
| 232 std::queue<CreateGpuMemoryBufferCallback> create_gpu_memory_buffer_requests_; | 232 std::queue<CreateGpuMemoryBufferCallback> create_gpu_memory_buffer_requests_; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // assumed to be associated with untrusted content such as WebGL. | 280 // assumed to be associated with untrusted content such as WebGL. |
| 281 // For best robustness, when any context lost notification is | 281 // For best robustness, when any context lost notification is |
| 282 // received, assume all of these URLs are guilty, and block | 282 // received, assume all of these URLs are guilty, and block |
| 283 // automatic execution of 3D content from those domains. | 283 // automatic execution of 3D content from those domains. |
| 284 std::multiset<GURL> urls_with_live_offscreen_contexts_; | 284 std::multiset<GURL> urls_with_live_offscreen_contexts_; |
| 285 | 285 |
| 286 typedef std::map<int32_t, scoped_refptr<gpu::ShaderDiskCache>> | 286 typedef std::map<int32_t, scoped_refptr<gpu::ShaderDiskCache>> |
| 287 ClientIdToShaderCacheMap; | 287 ClientIdToShaderCacheMap; |
| 288 ClientIdToShaderCacheMap client_id_to_shader_cache_; | 288 ClientIdToShaderCacheMap client_id_to_shader_cache_; |
| 289 | 289 |
| 290 std::string shader_prefix_key_; | 290 std::string shader_prefix_key_info_; |
| 291 | 291 |
| 292 ui::mojom::GpuMainAssociatedPtr gpu_main_ptr_; | 292 ui::mojom::GpuMainAssociatedPtr gpu_main_ptr_; |
| 293 | 293 |
| 294 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 294 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 295 }; | 295 }; |
| 296 | 296 |
| 297 } // namespace content | 297 } // namespace content |
| 298 | 298 |
| 299 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 299 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |