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 |