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

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

Issue 2550583002: gpu: Thread-safe command buffer state lookup. (Closed)
Patch Set: jbauman's review Created 4 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/common/command_buffer.h ('k') | gpu/command_buffer/service/command_buffer_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/command_buffer_mock.h
diff --git a/gpu/command_buffer/common/command_buffer_mock.h b/gpu/command_buffer/common/command_buffer_mock.h
index 4bdd782b0c11daed18c72afb02bdcd6f36bb1c5c..ff17e50f4625494783d3ee501749defbbfffe7b3 100644
--- a/gpu/command_buffer/common/command_buffer_mock.h
+++ b/gpu/command_buffer/common/command_buffer_mock.h
@@ -25,10 +25,11 @@ class MockCommandBuffer : public CommandBufferServiceBase {
MOCK_METHOD0(GetLastToken, int32_t());
MOCK_METHOD1(Flush, void(int32_t put_offset));
MOCK_METHOD1(OrderingBarrier, void(int32_t put_offset));
- MOCK_METHOD2(WaitForTokenInRange, void(int32_t start, int32_t end));
- MOCK_METHOD2(WaitForGetOffsetInRange, void(int32_t start, int32_t end));
+ MOCK_METHOD2(WaitForTokenInRange, State(int32_t start, int32_t end));
+ MOCK_METHOD2(WaitForGetOffsetInRange, State(int32_t start, int32_t end));
MOCK_METHOD1(SetGetBuffer, void(int32_t transfer_buffer_id));
MOCK_METHOD1(SetGetOffset, void(int32_t get_offset));
+ MOCK_METHOD1(SetReleaseCount, void(uint64_t release_count));
MOCK_METHOD2(CreateTransferBuffer,
scoped_refptr<gpu::Buffer>(size_t size, int32_t* id));
MOCK_METHOD1(DestroyTransferBuffer, void(int32_t id));
« no previous file with comments | « gpu/command_buffer/common/command_buffer.h ('k') | gpu/command_buffer/service/command_buffer_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698