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_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 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/containers/scoped_ptr_hash_map.h" | 12 #include "base/containers/scoped_ptr_hash_map.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/message_loop/message_loop_proxy.h" | 16 #include "base/message_loop/message_loop_proxy.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 18 #include "content/common/content_param_traits.h" |
18 #include "content/common/gpu/devtools_gpu_instrumentation.h" | 19 #include "content/common/gpu/devtools_gpu_instrumentation.h" |
19 #include "content/common/gpu/gpu_memory_manager.h" | 20 #include "content/common/gpu/gpu_memory_manager.h" |
20 #include "ipc/ipc_listener.h" | 21 #include "ipc/ipc_listener.h" |
21 #include "ipc/ipc_sender.h" | 22 #include "ipc/ipc_sender.h" |
22 #include "ui/gfx/native_widget_types.h" | 23 #include "ui/gfx/native_widget_types.h" |
23 #include "ui/gl/gl_surface.h" | 24 #include "ui/gl/gl_surface.h" |
24 | 25 |
25 namespace base { | 26 namespace base { |
26 class WaitableEvent; | 27 class WaitableEvent; |
27 } | 28 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 const gfx::GLSurfaceHandle& window, | 119 const gfx::GLSurfaceHandle& window, |
119 int32 render_view_id, | 120 int32 render_view_id, |
120 int32 client_id, | 121 int32 client_id, |
121 const GPUCreateCommandBufferConfig& init_params, | 122 const GPUCreateCommandBufferConfig& init_params, |
122 int32 route_id); | 123 int32 route_id); |
123 void OnLoadedShader(std::string shader); | 124 void OnLoadedShader(std::string shader); |
124 void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle); | 125 void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle); |
125 void DestroyGpuMemoryBufferOnIO(const gfx::GpuMemoryBufferHandle& handle); | 126 void DestroyGpuMemoryBufferOnIO(const gfx::GpuMemoryBufferHandle& handle); |
126 void OnDestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, | 127 void OnDestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, |
127 int32 sync_point); | 128 int32 sync_point); |
| 129 void OnHandleInputEvent(const blink::WebInputEvent* input_event, |
| 130 bool is_keyboard_shortcut); |
128 | 131 |
129 void OnLoseAllContexts(); | 132 void OnLoseAllContexts(); |
130 | 133 |
131 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 134 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
132 base::WaitableEvent* shutdown_event_; | 135 base::WaitableEvent* shutdown_event_; |
133 | 136 |
134 // Used to send and receive IPC messages from the browser process. | 137 // Used to send and receive IPC messages from the browser process. |
135 MessageRouter* const router_; | 138 MessageRouter* const router_; |
136 | 139 |
137 // These objects manage channels to individual renderer processes there is | 140 // These objects manage channels to individual renderer processes there is |
(...skipping 17 matching lines...) Expand all Loading... |
155 // that any WeakPtrs to Controller are invalidated before its members | 158 // that any WeakPtrs to Controller are invalidated before its members |
156 // variable's destructors are executed, rendering them invalid. | 159 // variable's destructors are executed, rendering them invalid. |
157 base::WeakPtrFactory<GpuChannelManager> weak_factory_; | 160 base::WeakPtrFactory<GpuChannelManager> weak_factory_; |
158 | 161 |
159 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 162 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
160 }; | 163 }; |
161 | 164 |
162 } // namespace content | 165 } // namespace content |
163 | 166 |
164 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 167 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
OLD | NEW |