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

Unified Diff: gpu/command_buffer/client/client_test_helper.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
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/client/cmd_buffer_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/client_test_helper.cc
diff --git a/gpu/command_buffer/client/client_test_helper.cc b/gpu/command_buffer/client/client_test_helper.cc
index 3c50f6b20cc2bb5753fc8ee6ef07bab66ff8aae9..4ba5fdc4178ddd6e99edc27f6778baf661739fa7 100644
--- a/gpu/command_buffer/client/client_test_helper.cc
+++ b/gpu/command_buffer/client/client_test_helper.cc
@@ -89,7 +89,9 @@ scoped_refptr<Buffer> MockCommandBufferBase::GetTransferBuffer(int32 id) {
return transfer_buffer_buffers_[id - kTransferBufferBaseId];
}
-void MockCommandBufferBase::FlushHelper(int32 put_offset) {
+void MockCommandBufferBase::FlushHelper(
+ int32 put_offset,
+ const std::vector<uint32>& sync_points) {
put_offset_ = put_offset;
}
@@ -126,8 +128,9 @@ MockClientCommandBuffer::MockClientCommandBuffer() {
MockClientCommandBuffer::~MockClientCommandBuffer() {
}
-void MockClientCommandBuffer::Flush(int32 put_offset) {
- FlushHelper(put_offset);
+void MockClientCommandBuffer::Flush(int32 put_offset,
+ const std::vector<uint32>& sync_points) {
+ FlushHelper(put_offset, sync_points);
}
void MockClientCommandBuffer::DelegateToFake() {
@@ -145,9 +148,8 @@ MockClientCommandBufferMockFlush::~MockClientCommandBufferMockFlush() {
void MockClientCommandBufferMockFlush::DelegateToFake() {
MockClientCommandBuffer::DelegateToFake();
- ON_CALL(*this, Flush(_))
- .WillByDefault(Invoke(
- this, &MockCommandBufferBase::FlushHelper));
+ ON_CALL(*this, Flush(_, _))
+ .WillByDefault(Invoke(this, &MockCommandBufferBase::FlushHelper));
}
MockClientGpuControl::MockClientGpuControl() {
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/client/cmd_buffer_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698