Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1603)

Side by Side Diff: gpu/ipc/client/command_buffer_proxy_impl.h

Issue 2318933005: Validate all flush IDs if the unvalidated list gets too long. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move cleanup Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698