OLD | NEW |
---|---|
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 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 } | 42 } |
43 | 43 |
44 namespace IPC { | 44 namespace IPC { |
45 class SyncMessageFilter; | 45 class SyncMessageFilter; |
46 } | 46 } |
47 | 47 |
48 namespace content { | 48 namespace content { |
49 class CommandBufferProxyImpl; | 49 class CommandBufferProxyImpl; |
50 class GpuChannelHost; | 50 class GpuChannelHost; |
51 struct GpuRenderingStats; | 51 struct GpuRenderingStats; |
52 class PowerMonitorMessageBroadcaster; | |
52 | 53 |
53 struct GpuListenerInfo { | 54 struct GpuListenerInfo { |
54 GpuListenerInfo(); | 55 GpuListenerInfo(); |
55 ~GpuListenerInfo(); | 56 ~GpuListenerInfo(); |
56 | 57 |
57 base::WeakPtr<IPC::Listener> listener; | 58 base::WeakPtr<IPC::Listener> listener; |
58 scoped_refptr<base::MessageLoopProxy> loop; | 59 scoped_refptr<base::MessageLoopProxy> loop; |
59 }; | 60 }; |
60 | 61 |
61 class CONTENT_EXPORT GpuChannelHostFactory { | 62 class CONTENT_EXPORT GpuChannelHostFactory { |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
241 | 242 |
242 // Transfer buffer IDs are allocated in sequence. | 243 // Transfer buffer IDs are allocated in sequence. |
243 base::AtomicSequenceNumber next_transfer_buffer_id_; | 244 base::AtomicSequenceNumber next_transfer_buffer_id_; |
244 | 245 |
245 // Protects proxies_. | 246 // Protects proxies_. |
246 mutable base::Lock context_lock_; | 247 mutable base::Lock context_lock_; |
247 // Used to look up a proxy from its routing id. | 248 // Used to look up a proxy from its routing id. |
248 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap; | 249 typedef base::hash_map<int, CommandBufferProxyImpl*> ProxyMap; |
249 ProxyMap proxies_; | 250 ProxyMap proxies_; |
250 | 251 |
252 scoped_ptr<PowerMonitorMessageBroadcaster> power_monitor_broadcaster_; | |
vandebo (ex-Chrome)
2013/06/26 21:40:33
direct member?
bajones
2013/06/26 22:37:22
This class needs to be provided with the Sender*.
vandebo (ex-Chrome)
2013/06/26 22:50:12
I may be misunderstanding your reply... you can st
bajones
2013/06/26 22:57:50
*facepalm*
This is what too much Javascript does
| |
253 | |
251 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); | 254 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); |
252 }; | 255 }; |
253 | 256 |
254 } // namespace content | 257 } // namespace content |
255 | 258 |
256 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ | 259 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ |
OLD | NEW |