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_COMMAND_BUFFER_PROXY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 // Try to read an updated copy of the state from shared memory. | 190 // Try to read an updated copy of the state from shared memory. |
191 void TryUpdateState(); | 191 void TryUpdateState(); |
192 | 192 |
193 // The shared memory area used to update state. | 193 // The shared memory area used to update state. |
194 gpu::CommandBufferSharedState* shared_state() const; | 194 gpu::CommandBufferSharedState* shared_state() const; |
195 | 195 |
196 base::Lock* lock_; | 196 base::Lock* lock_; |
197 | 197 |
198 // Unowned list of DeletionObservers. | 198 // Unowned list of DeletionObservers. |
199 ObserverList<DeletionObserver> deletion_observers_; | 199 base::ObserverList<DeletionObserver> deletion_observers_; |
200 | 200 |
201 // The last cached state received from the service. | 201 // The last cached state received from the service. |
202 State last_state_; | 202 State last_state_; |
203 | 203 |
204 // The shared memory area used to update state. | 204 // The shared memory area used to update state. |
205 scoped_ptr<base::SharedMemory> shared_state_shm_; | 205 scoped_ptr<base::SharedMemory> shared_state_shm_; |
206 | 206 |
207 // |*this| is owned by |*channel_| and so is always outlived by it, so using a | 207 // |*this| is owned by |*channel_| and so is always outlived by it, so using a |
208 // raw pointer is ok. | 208 // raw pointer is ok. |
209 GpuChannelHost* channel_; | 209 GpuChannelHost* channel_; |
(...skipping 21 matching lines...) Expand all Loading... |
231 | 231 |
232 SwapBuffersCompletionCallback swap_buffers_completion_callback_; | 232 SwapBuffersCompletionCallback swap_buffers_completion_callback_; |
233 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; | 233 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; |
234 | 234 |
235 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 235 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
236 }; | 236 }; |
237 | 237 |
238 } // namespace content | 238 } // namespace content |
239 | 239 |
240 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 240 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |