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_GPU_CHANNEL_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 namespace content { | 45 namespace content { |
46 class StreamTextureManagerAndroid; | 46 class StreamTextureManagerAndroid; |
47 } | 47 } |
48 #endif | 48 #endif |
49 | 49 |
50 namespace content { | 50 namespace content { |
51 class GpuChannelManager; | 51 class GpuChannelManager; |
52 struct GpuRenderingStats; | 52 struct GpuRenderingStats; |
53 class GpuWatchdog; | 53 class GpuWatchdog; |
54 class GpuChannelMessageFilter; | 54 class GpuChannelMessageFilter; |
| 55 class PowerMonitorMessageFilter; |
55 | 56 |
56 // Encapsulates an IPC channel between the GPU process and one renderer | 57 // Encapsulates an IPC channel between the GPU process and one renderer |
57 // process. On the renderer side there's a corresponding GpuChannelHost. | 58 // process. On the renderer side there's a corresponding GpuChannelHost. |
58 class GpuChannel : public IPC::Listener, | 59 class GpuChannel : public IPC::Listener, |
59 public IPC::Sender, | 60 public IPC::Sender, |
60 public base::RefCountedThreadSafe<GpuChannel> { | 61 public base::RefCountedThreadSafe<GpuChannel> { |
61 public: | 62 public: |
62 // Takes ownership of the renderer process handle. | 63 // Takes ownership of the renderer process handle. |
63 GpuChannel(GpuChannelManager* gpu_channel_manager, | 64 GpuChannel(GpuChannelManager* gpu_channel_manager, |
64 GpuWatchdog* watchdog, | 65 GpuWatchdog* watchdog, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 bool processed_get_state_fast_; | 241 bool processed_get_state_fast_; |
241 IPC::Message* currently_processing_message_; | 242 IPC::Message* currently_processing_message_; |
242 | 243 |
243 #if defined(OS_ANDROID) | 244 #if defined(OS_ANDROID) |
244 scoped_ptr<StreamTextureManagerAndroid> stream_texture_manager_; | 245 scoped_ptr<StreamTextureManagerAndroid> stream_texture_manager_; |
245 #endif | 246 #endif |
246 | 247 |
247 base::WeakPtrFactory<GpuChannel> weak_factory_; | 248 base::WeakPtrFactory<GpuChannel> weak_factory_; |
248 | 249 |
249 scoped_refptr<GpuChannelMessageFilter> filter_; | 250 scoped_refptr<GpuChannelMessageFilter> filter_; |
| 251 scoped_refptr<PowerMonitorMessageFilter> power_monitor_filter_; |
250 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 252 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
251 | 253 |
252 size_t num_stubs_descheduled_; | 254 size_t num_stubs_descheduled_; |
253 | 255 |
254 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 256 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
255 }; | 257 }; |
256 | 258 |
257 } // namespace content | 259 } // namespace content |
258 | 260 |
259 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 261 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |