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> |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 bool allow_real_time_streams); | 138 bool allow_real_time_streams); |
139 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); | 139 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); |
140 void OnVisibilityChanged( | 140 void OnVisibilityChanged( |
141 int32 render_view_id, int32 client_id, bool visible); | 141 int32 render_view_id, int32 client_id, bool visible); |
142 void OnCreateViewCommandBuffer( | 142 void OnCreateViewCommandBuffer( |
143 const gfx::GLSurfaceHandle& window, | 143 const gfx::GLSurfaceHandle& window, |
144 int32 render_view_id, | 144 int32 render_view_id, |
145 int32 client_id, | 145 int32 client_id, |
146 const GPUCreateCommandBufferConfig& init_params, | 146 const GPUCreateCommandBufferConfig& init_params, |
147 int32 route_id); | 147 int32 route_id); |
148 void OnLoadedShader(std::string shader); | 148 void OnLoadedShader(const std::string& shader); |
149 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, int client_id); | 149 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, int client_id); |
150 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferId id, int client_id); | 150 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferId id, int client_id); |
151 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 151 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
152 int client_id, | 152 int client_id, |
153 int32 sync_point); | 153 int32 sync_point); |
154 | 154 |
155 void OnUpdateValueState(int client_id, | 155 void OnUpdateValueState(int client_id, |
156 unsigned int target, | 156 unsigned int target, |
157 const gpu::ValueState& state); | 157 const gpu::ValueState& state); |
158 void OnLoseAllContexts(); | 158 void OnLoseAllContexts(); |
(...skipping 22 matching lines...) Expand all Loading... |
181 // that any WeakPtrs to Controller are invalidated before its members | 181 // that any WeakPtrs to Controller are invalidated before its members |
182 // variable's destructors are executed, rendering them invalid. | 182 // variable's destructors are executed, rendering them invalid. |
183 base::WeakPtrFactory<GpuChannelManager> weak_factory_; | 183 base::WeakPtrFactory<GpuChannelManager> weak_factory_; |
184 | 184 |
185 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 185 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
186 }; | 186 }; |
187 | 187 |
188 } // namespace content | 188 } // namespace content |
189 | 189 |
190 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 190 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
OLD | NEW |