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

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

Issue 1532813002: Replace IOSurfaceManager by directly passing IOSurface Mach ports over Chrome IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 11 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 | « 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 16 matching lines...) Expand all
27 #include "content/public/browser/gpu_data_manager.h" 27 #include "content/public/browser/gpu_data_manager.h"
28 #include "gpu/command_buffer/common/constants.h" 28 #include "gpu/command_buffer/common/constants.h"
29 #include "gpu/config/gpu_info.h" 29 #include "gpu/config/gpu_info.h"
30 #include "ipc/ipc_sender.h" 30 #include "ipc/ipc_sender.h"
31 #include "ipc/message_filter.h" 31 #include "ipc/message_filter.h"
32 #include "ui/gfx/geometry/size.h" 32 #include "ui/gfx/geometry/size.h"
33 #include "ui/gfx/gpu_memory_buffer.h" 33 #include "ui/gfx/gpu_memory_buffer.h"
34 #include "ui/gfx/native_widget_types.h" 34 #include "ui/gfx/native_widget_types.h"
35 #include "url/gurl.h" 35 #include "url/gurl.h"
36 36
37 #if defined(OS_MACOSX) && !defined(OS_IOS)
38 #include "content/common/mac/io_surface_manager_token.h"
39 #endif
40
41 struct GPUCreateCommandBufferConfig; 37 struct GPUCreateCommandBufferConfig;
42 38
43 namespace IPC { 39 namespace IPC {
44 struct ChannelHandle; 40 struct ChannelHandle;
45 } 41 }
46 42
47 namespace gpu { 43 namespace gpu {
48 struct SyncToken; 44 struct SyncToken;
49 } 45 }
50 46
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 // Statics kept around to send to UMA histograms on GPU process lost. 284 // Statics kept around to send to UMA histograms on GPU process lost.
289 bool uma_memory_stats_received_; 285 bool uma_memory_stats_received_;
290 GPUMemoryUmaStats uma_memory_stats_; 286 GPUMemoryUmaStats uma_memory_stats_;
291 287
292 typedef std::map<int32_t, scoped_refptr<ShaderDiskCache>> 288 typedef std::map<int32_t, scoped_refptr<ShaderDiskCache>>
293 ClientIdToShaderCacheMap; 289 ClientIdToShaderCacheMap;
294 ClientIdToShaderCacheMap client_id_to_shader_cache_; 290 ClientIdToShaderCacheMap client_id_to_shader_cache_;
295 291
296 std::string shader_prefix_key_; 292 std::string shader_prefix_key_;
297 293
298 #if defined(OS_MACOSX) && !defined(OS_IOS)
299 // Unique unguessable token that the GPU process is using to register
300 // IOSurfaces.
301 IOSurfaceManagerToken io_surface_manager_token_;
302 #endif
303
304 // Browser-side Mojo endpoint which sets up a Mojo channel with the child 294 // Browser-side Mojo endpoint which sets up a Mojo channel with the child
305 // process and contains the browser's ServiceRegistry. 295 // process and contains the browser's ServiceRegistry.
306 scoped_ptr<MojoApplicationHost> mojo_application_host_; 296 scoped_ptr<MojoApplicationHost> mojo_application_host_;
307 297
308 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 298 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
309 }; 299 };
310 300
311 } // namespace content 301 } // namespace content
312 302
313 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 303 #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