OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MANAGER_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // Message handlers. | 69 // Message handlers. |
70 void OnEstablishChannel(int renderer_id); | 70 void OnEstablishChannel(int renderer_id); |
71 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); | 71 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); |
72 void OnVisibilityChanged( | 72 void OnVisibilityChanged( |
73 int32 render_view_id, int32 renderer_id, bool visible); | 73 int32 render_view_id, int32 renderer_id, bool visible); |
74 void OnCreateViewCommandBuffer( | 74 void OnCreateViewCommandBuffer( |
75 gfx::PluginWindowHandle window, | 75 gfx::PluginWindowHandle window, |
76 int32 render_view_id, | 76 int32 render_view_id, |
77 int32 renderer_id, | 77 int32 renderer_id, |
78 const GPUCreateCommandBufferConfig& init_params); | 78 const GPUCreateCommandBufferConfig& init_params); |
| 79 void OnResizeViewACK(int32 renderer_id, int32 command_buffer_route_id); |
79 | 80 |
80 void OnLoseAllContexts(); | 81 void OnLoseAllContexts(); |
81 | 82 |
82 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 83 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
83 base::WaitableEvent* shutdown_event_; | 84 base::WaitableEvent* shutdown_event_; |
84 | 85 |
85 // Used to send and receive IPC messages from the browser process. | 86 // Used to send and receive IPC messages from the browser process. |
86 ChildThread* gpu_child_thread_; | 87 ChildThread* gpu_child_thread_; |
87 | 88 |
88 // These objects manage channels to individual renderer processes there is | 89 // These objects manage channels to individual renderer processes there is |
89 // one channel for each renderer process that has connected to this GPU | 90 // one channel for each renderer process that has connected to this GPU |
90 // process. | 91 // process. |
91 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; | 92 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; |
92 GpuChannelMap gpu_channels_; | 93 GpuChannelMap gpu_channels_; |
93 GpuWatchdog* watchdog_; | 94 GpuWatchdog* watchdog_; |
94 | 95 |
95 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 96 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
96 }; | 97 }; |
97 | 98 |
98 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 99 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
OLD | NEW |