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

Unified Diff: gpu/command_buffer/client/cmd_buffer_helper.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
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.cc ('k') | gpu/command_buffer/client/cmd_buffer_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/cmd_buffer_helper.h
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.h b/gpu/command_buffer/client/cmd_buffer_helper.h
index d10a5546ed9abad646ef42849cde9d342d8dd5df..e7f267ae1d4e4212bc9f456f9c708219e70c77e9 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper.h
+++ b/gpu/command_buffer/client/cmd_buffer_helper.h
@@ -290,6 +290,10 @@ class GPU_EXPORT CommandBufferHelper {
CalcImmediateEntries(0);
}
+ void WillWaitOnSyncPoint(int sync_point) {
+ sync_points_to_wait_on_.push_back(sync_point);
+ }
+
private:
// Returns the number of available entries (they may not be contiguous).
int32 AvailableEntries() {
@@ -320,6 +324,8 @@ class GPU_EXPORT CommandBufferHelper {
int32 put_;
int32 last_put_sent_;
+ std::vector<uint32> sync_points_to_wait_on_;
+
#if defined(CMD_HELPER_PERIODIC_FLUSH_CHECK)
int commands_issued_;
#endif
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.cc ('k') | gpu/command_buffer/client/cmd_buffer_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698