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

Side by Side Diff: content/common/gpu/client/gpu_channel_host.h

Issue 1184523003: attachment broker wip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor comments. Created 5 years, 6 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_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/atomic_sequence_num.h" 11 #include "base/atomic_sequence_num.h"
12 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/process/process.h" 16 #include "base/process/process.h"
17 #include "base/synchronization/lock.h" 17 #include "base/synchronization/lock.h"
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "content/common/gpu/gpu_process_launch_causes.h" 19 #include "content/common/gpu/gpu_process_launch_causes.h"
20 #include "content/common/gpu/gpu_result_codes.h" 20 #include "content/common/gpu/gpu_result_codes.h"
21 #include "content/common/message_router.h" 21 #include "content/common/message_router.h"
22 #include "gpu/config/gpu_info.h" 22 #include "gpu/config/gpu_info.h"
23 #include "ipc/attachment_broker.h"
23 #include "ipc/ipc_channel_handle.h" 24 #include "ipc/ipc_channel_handle.h"
24 #include "ipc/ipc_sync_channel.h" 25 #include "ipc/ipc_sync_channel.h"
25 #include "ipc/message_filter.h" 26 #include "ipc/message_filter.h"
26 #include "ui/events/latency_info.h" 27 #include "ui/events/latency_info.h"
27 #include "ui/gfx/geometry/size.h" 28 #include "ui/gfx/geometry/size.h"
28 #include "ui/gfx/gpu_memory_buffer.h" 29 #include "ui/gfx/gpu_memory_buffer.h"
29 #include "ui/gfx/native_widget_types.h" 30 #include "ui/gfx/native_widget_types.h"
30 #include "ui/gl/gpu_preference.h" 31 #include "ui/gl/gpu_preference.h"
31 32
32 class GURL; 33 class GURL;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 ProxyFlushInfo(); 68 ProxyFlushInfo();
68 ~ProxyFlushInfo(); 69 ~ProxyFlushInfo();
69 70
70 bool flush_pending; 71 bool flush_pending;
71 int route_id; 72 int route_id;
72 int32 put_offset; 73 int32 put_offset;
73 unsigned int flush_count; 74 unsigned int flush_count;
74 std::vector<ui::LatencyInfo> latency_info; 75 std::vector<ui::LatencyInfo> latency_info;
75 }; 76 };
76 77
77 class CONTENT_EXPORT GpuChannelHostFactory { 78 class CONTENT_EXPORT GpuChannelHostFactory
79 : virtual public IPC::SupportsAttachmentBrokering {
78 public: 80 public:
79 virtual ~GpuChannelHostFactory() {} 81 virtual ~GpuChannelHostFactory() {}
80 82
81 virtual bool IsMainThread() = 0; 83 virtual bool IsMainThread() = 0;
82 virtual scoped_refptr<base::SingleThreadTaskRunner> 84 virtual scoped_refptr<base::SingleThreadTaskRunner>
83 GetIOThreadTaskRunner() = 0; 85 GetIOThreadTaskRunner() = 0;
84 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) = 0; 86 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) = 0;
85 virtual CreateCommandBufferResult CreateViewCommandBuffer( 87 virtual CreateCommandBufferResult CreateViewCommandBuffer(
86 int32 surface_id, 88 int32 surface_id,
87 const GPUCreateCommandBufferConfig& init_params, 89 const GPUCreateCommandBufferConfig& init_params,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap; 271 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap;
270 ProxyMap proxies_; 272 ProxyMap proxies_;
271 ProxyFlushInfo flush_info_; 273 ProxyFlushInfo flush_info_;
272 274
273 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 275 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
274 }; 276 };
275 277
276 } // namespace content 278 } // namespace content
277 279
278 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 280 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/common/child_process_host_impl.cc ('k') | content/common/gpu/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698