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

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: Fix Windows compile Created 5 years 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
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 <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 12 matching lines...) Expand all
23 #include "content/public/browser/gpu_data_manager.h" 23 #include "content/public/browser/gpu_data_manager.h"
24 #include "gpu/command_buffer/common/constants.h" 24 #include "gpu/command_buffer/common/constants.h"
25 #include "gpu/config/gpu_info.h" 25 #include "gpu/config/gpu_info.h"
26 #include "ipc/ipc_sender.h" 26 #include "ipc/ipc_sender.h"
27 #include "ipc/message_filter.h" 27 #include "ipc/message_filter.h"
28 #include "ui/gfx/geometry/size.h" 28 #include "ui/gfx/geometry/size.h"
29 #include "ui/gfx/gpu_memory_buffer.h" 29 #include "ui/gfx/gpu_memory_buffer.h"
30 #include "ui/gfx/native_widget_types.h" 30 #include "ui/gfx/native_widget_types.h"
31 #include "url/gurl.h" 31 #include "url/gurl.h"
32 32
33 #if defined(OS_MACOSX) && !defined(OS_IOS)
34 #include "content/common/mac/io_surface_manager_token.h"
35 #endif
36
37 struct GPUCreateCommandBufferConfig; 33 struct GPUCreateCommandBufferConfig;
38 34
39 namespace IPC { 35 namespace IPC {
40 struct ChannelHandle; 36 struct ChannelHandle;
41 } 37 }
42 38
43 namespace gpu { 39 namespace gpu {
44 struct SyncToken; 40 struct SyncToken;
45 } 41 }
46 42
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // Statics kept around to send to UMA histograms on GPU process lost. 279 // Statics kept around to send to UMA histograms on GPU process lost.
284 bool uma_memory_stats_received_; 280 bool uma_memory_stats_received_;
285 GPUMemoryUmaStats uma_memory_stats_; 281 GPUMemoryUmaStats uma_memory_stats_;
286 282
287 typedef std::map<int32, scoped_refptr<ShaderDiskCache> > 283 typedef std::map<int32, scoped_refptr<ShaderDiskCache> >
288 ClientIdToShaderCacheMap; 284 ClientIdToShaderCacheMap;
289 ClientIdToShaderCacheMap client_id_to_shader_cache_; 285 ClientIdToShaderCacheMap client_id_to_shader_cache_;
290 286
291 std::string shader_prefix_key_; 287 std::string shader_prefix_key_;
292 288
293 #if defined(OS_MACOSX) && !defined(OS_IOS)
294 // Unique unguessable token that the GPU process is using to register
295 // IOSurfaces.
296 IOSurfaceManagerToken io_surface_manager_token_;
297 #endif
298
299 // Browser-side Mojo endpoint which sets up a Mojo channel with the child 289 // Browser-side Mojo endpoint which sets up a Mojo channel with the child
300 // process and contains the browser's ServiceRegistry. 290 // process and contains the browser's ServiceRegistry.
301 scoped_ptr<MojoApplicationHost> mojo_application_host_; 291 scoped_ptr<MojoApplicationHost> mojo_application_host_;
302 292
303 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 293 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
304 }; 294 };
305 295
306 } // namespace content 296 } // namespace content
307 297
308 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 298 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698