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

Unified Diff: gpu/command_buffer/common/command_buffer.h

Issue 782583003: List sync points to wait on in AsyncFlush message Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/command_buffer.h
diff --git a/gpu/command_buffer/common/command_buffer.h b/gpu/command_buffer/common/command_buffer.h
index d846ec11a634c1f7bade9440d0a830c1327ce21f..cad9f5b844cb5cfaec95449422f93a510e51bf28 100644
--- a/gpu/command_buffer/common/command_buffer.h
+++ b/gpu/command_buffer/common/command_buffer.h
@@ -87,8 +87,10 @@ class GPU_EXPORT CommandBuffer {
// The writer calls this to update its put offset. This ensures the reader
// sees the latest added commands, and will eventually process them. On the
// service side, commands are processed up to the given put_offset before
- // subsequent Flushes on the same GpuChannel.
- virtual void Flush(int32 put_offset) = 0;
+ // subsequent Flushes on the same GpuChannel. sync_points contains the set
+ // of sync points that will be waited on before executing the commands.
+ virtual void Flush(int32 put_offset,
+ const std::vector<uint32>& sync_points) = 0;
// The writer calls this to wait until the current token is within a
// specific range, inclusive. Can return early if an error is generated.
« no previous file with comments | « gpu/command_buffer/client/transfer_buffer_unittest.cc ('k') | gpu/command_buffer/common/command_buffer_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698