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

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

Issue 2625933002: content/gpu: Set up a mojom connection between browser and gpu. (Closed)
Patch Set: tot merge Created 3 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
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 10 matching lines...) Expand all
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
24 #include "content/public/browser/browser_child_process_host_delegate.h" 24 #include "content/public/browser/browser_child_process_host_delegate.h"
25 #include "content/public/browser/gpu_data_manager.h" 25 #include "content/public/browser/gpu_data_manager.h"
26 #include "gpu/command_buffer/common/constants.h" 26 #include "gpu/command_buffer/common/constants.h"
27 #include "gpu/config/gpu_info.h" 27 #include "gpu/config/gpu_info.h"
28 #include "gpu/ipc/common/surface_handle.h" 28 #include "gpu/ipc/common/surface_handle.h"
29 #include "ipc/ipc_sender.h" 29 #include "ipc/ipc_sender.h"
30 #include "ipc/message_filter.h" 30 #include "ipc/message_filter.h"
31 #include "services/ui/gpu/interfaces/gpu_main.mojom.h"
31 #include "ui/gfx/geometry/size.h" 32 #include "ui/gfx/geometry/size.h"
32 #include "ui/gfx/gpu_memory_buffer.h" 33 #include "ui/gfx/gpu_memory_buffer.h"
33 #include "url/gurl.h" 34 #include "url/gurl.h"
34 35
35 namespace base { 36 namespace base {
36 class Thread; 37 class Thread;
37 } 38 }
38 39
39 namespace IPC { 40 namespace IPC {
40 struct ChannelHandle; 41 struct ChannelHandle;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // received, assume all of these URLs are guilty, and block 282 // received, assume all of these URLs are guilty, and block
282 // automatic execution of 3D content from those domains. 283 // automatic execution of 3D content from those domains.
283 std::multiset<GURL> urls_with_live_offscreen_contexts_; 284 std::multiset<GURL> urls_with_live_offscreen_contexts_;
284 285
285 typedef std::map<int32_t, scoped_refptr<gpu::ShaderDiskCache>> 286 typedef std::map<int32_t, scoped_refptr<gpu::ShaderDiskCache>>
286 ClientIdToShaderCacheMap; 287 ClientIdToShaderCacheMap;
287 ClientIdToShaderCacheMap client_id_to_shader_cache_; 288 ClientIdToShaderCacheMap client_id_to_shader_cache_;
288 289
289 std::string shader_prefix_key_; 290 std::string shader_prefix_key_;
290 291
292 ui::mojom::GpuMainAssociatedPtr gpu_main_ptr_;
293
291 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 294 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
292 }; 295 };
293 296
294 } // namespace content 297 } // namespace content
295 298
296 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 299 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698