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

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

Issue 2412113002: Use SharedPersistentMemoryAllocator to share field trial state (Closed)
Patch Set: gclient sync Created 4 years, 1 month 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 | « content/browser/child_process_launcher.cc ('k') | 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698