| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 gfx::SwapResult result); | 200 gfx::SwapResult result); |
| 201 void OnUpdateVSyncParameters(base::TimeTicks timebase, | 201 void OnUpdateVSyncParameters(base::TimeTicks timebase, |
| 202 base::TimeDelta interval); | 202 base::TimeDelta interval); |
| 203 | 203 |
| 204 // Try to read an updated copy of the state from shared memory. | 204 // Try to read an updated copy of the state from shared memory. |
| 205 void TryUpdateState(); | 205 void TryUpdateState(); |
| 206 | 206 |
| 207 // Updates the highest verified release fence sync. | 207 // Updates the highest verified release fence sync. |
| 208 void UpdateVerifiedReleases(uint32_t verified_flush); | 208 void UpdateVerifiedReleases(uint32_t verified_flush); |
| 209 | 209 |
| 210 // Loses the context after we received an invalid message/reply from the GPU |
| 211 // process. |
| 212 void InvalidGpuMessage(); |
| 213 |
| 210 // The shared memory area used to update state. | 214 // The shared memory area used to update state. |
| 211 gpu::CommandBufferSharedState* shared_state() const; | 215 gpu::CommandBufferSharedState* shared_state() const; |
| 212 | 216 |
| 213 base::Lock* lock_; | 217 base::Lock* lock_; |
| 214 | 218 |
| 215 // Unowned list of DeletionObservers. | 219 // Unowned list of DeletionObservers. |
| 216 base::ObserverList<DeletionObserver> deletion_observers_; | 220 base::ObserverList<DeletionObserver> deletion_observers_; |
| 217 | 221 |
| 218 // The last cached state received from the service. | 222 // The last cached state received from the service. |
| 219 State last_state_; | 223 State last_state_; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 261 |
| 258 SwapBuffersCompletionCallback swap_buffers_completion_callback_; | 262 SwapBuffersCompletionCallback swap_buffers_completion_callback_; |
| 259 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; | 263 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; |
| 260 | 264 |
| 261 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 265 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
| 262 }; | 266 }; |
| 263 | 267 |
| 264 } // namespace content | 268 } // namespace content |
| 265 | 269 |
| 266 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 270 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
| OLD | NEW |