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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // received, assume all of these URLs are guilty, and block | 285 // received, assume all of these URLs are guilty, and block |
286 // automatic execution of 3D content from those domains. | 286 // automatic execution of 3D content from those domains. |
287 std::multiset<GURL> urls_with_live_offscreen_contexts_; | 287 std::multiset<GURL> urls_with_live_offscreen_contexts_; |
288 | 288 |
289 typedef std::map<int32_t, scoped_refptr<ShaderDiskCache>> | 289 typedef std::map<int32_t, scoped_refptr<ShaderDiskCache>> |
290 ClientIdToShaderCacheMap; | 290 ClientIdToShaderCacheMap; |
291 ClientIdToShaderCacheMap client_id_to_shader_cache_; | 291 ClientIdToShaderCacheMap client_id_to_shader_cache_; |
292 | 292 |
293 std::string shader_prefix_key_; | 293 std::string shader_prefix_key_; |
294 | 294 |
295 // Anonymous shared memory segment to share with subprocess containing list of | |
296 // field trials (represented as a string). | |
297 // TODO(crbug.com/653874): Eventually remove this and use single shared memory | |
298 // object across processes. | |
299 std::unique_ptr<base::SharedMemory> field_trial_state_; | |
300 | |
301 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 295 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
302 }; | 296 }; |
303 | 297 |
304 } // namespace content | 298 } // namespace content |
305 | 299 |
306 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 300 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |