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 GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 5 #ifndef GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
6 #define GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 6 #define GPU_IPC_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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 gpu::error::Error error); | 202 gpu::error::Error error); |
203 void OnConsoleMessage(const GPUCommandBufferConsoleMessage& message); | 203 void OnConsoleMessage(const GPUCommandBufferConsoleMessage& message); |
204 void OnSignalAck(uint32_t id); | 204 void OnSignalAck(uint32_t id); |
205 void OnSwapBuffersCompleted( | 205 void OnSwapBuffersCompleted( |
206 const GpuCommandBufferMsg_SwapBuffersCompleted_Params& params); | 206 const GpuCommandBufferMsg_SwapBuffersCompleted_Params& params); |
207 void OnUpdateVSyncParameters(base::TimeTicks timebase, | 207 void OnUpdateVSyncParameters(base::TimeTicks timebase, |
208 base::TimeDelta interval); | 208 base::TimeDelta interval); |
209 | 209 |
210 // Updates the highest verified release fence sync. | 210 // Updates the highest verified release fence sync. |
211 void UpdateVerifiedReleases(uint32_t verified_flush); | 211 void UpdateVerifiedReleases(uint32_t verified_flush); |
| 212 void CleanupFlushedReleases(uint32_t highest_verified_flush_id); |
212 | 213 |
213 // Try to read an updated copy of the state from shared memory, and calls | 214 // Try to read an updated copy of the state from shared memory, and calls |
214 // OnGpuStateError() if the new state has an error. | 215 // OnGpuStateError() if the new state has an error. |
215 void TryUpdateState(); | 216 void TryUpdateState(); |
216 // Like the above but does not call the error event handler if the new state | 217 // Like the above but does not call the error event handler if the new state |
217 // has an error. | 218 // has an error. |
218 void TryUpdateStateDontReportError(); | 219 void TryUpdateStateDontReportError(); |
219 // Sets the state, and calls OnGpuStateError() if the new state has an error. | 220 // Sets the state, and calls OnGpuStateError() if the new state has an error. |
220 void SetStateFromSyncReply(const gpu::CommandBuffer::State& state); | 221 void SetStateFromSyncReply(const gpu::CommandBuffer::State& state); |
221 | 222 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 296 |
296 base::WeakPtr<CommandBufferProxyImpl> weak_this_; | 297 base::WeakPtr<CommandBufferProxyImpl> weak_this_; |
297 scoped_refptr<base::SequencedTaskRunner> callback_thread_; | 298 scoped_refptr<base::SequencedTaskRunner> callback_thread_; |
298 | 299 |
299 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); | 300 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); |
300 }; | 301 }; |
301 | 302 |
302 } // namespace gpu | 303 } // namespace gpu |
303 | 304 |
304 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ | 305 #endif // GPU_IPC_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ |
OLD | NEW |