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

Unified Diff: gpu/command_buffer/client/cmd_buffer_helper_test.cc

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/client/cmd_buffer_helper_test.cc
diff --git a/gpu/command_buffer/client/cmd_buffer_helper_test.cc b/gpu/command_buffer/client/cmd_buffer_helper_test.cc
index fe6888792349a88cef728a1265a4a834a0d35324..c41377283b8c063f0f02bdaf3d51d6891d7477f1 100644
--- a/gpu/command_buffer/client/cmd_buffer_helper_test.cc
+++ b/gpu/command_buffer/client/cmd_buffer_helper_test.cc
@@ -48,11 +48,12 @@ class CommandBufferServiceLocked : public CommandBufferService {
flush_count_(0) {}
~CommandBufferServiceLocked() override {}
- void Flush(int32 put_offset) override {
+ void Flush(int32 put_offset,
+ const std::vector<uint32>& sync_points) override {
flush_count_++;
if (!flush_locked_) {
last_flush_ = -1;
- CommandBufferService::Flush(put_offset);
+ CommandBufferService::Flush(put_offset, sync_points);
} else {
last_flush_ = put_offset;
}
@@ -66,7 +67,7 @@ class CommandBufferServiceLocked : public CommandBufferService {
void WaitForGetOffsetInRange(int32 start, int32 end) override {
if (last_flush_ != -1) {
- CommandBufferService::Flush(last_flush_);
+ CommandBufferService::Flush(last_flush_, std::vector<uint32>());
last_flush_ = -1;
}
CommandBufferService::WaitForGetOffsetInRange(start, end);
« no previous file with comments | « gpu/command_buffer/client/cmd_buffer_helper.cc ('k') | gpu/command_buffer/client/gles2_cmd_helper_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698