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

Unified Diff: gpu/command_buffer/service/mocks.h

Issue 558513003: command_buffer: Batch command processing to reduce handler overheads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 3 months 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/service/gpu_scheduler_unittest.cc ('k') | gpu/command_buffer/service/mocks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/mocks.h
diff --git a/gpu/command_buffer/service/mocks.h b/gpu/command_buffer/service/mocks.h
index 6cdeb09982aa4fd81361b64ecd01636f799688e3..d32c031e47d4db20601b3a16d14728bbce55ad48 100644
--- a/gpu/command_buffer/service/mocks.h
+++ b/gpu/command_buffer/service/mocks.h
@@ -26,9 +26,14 @@ namespace gpu {
// Mocks an AsyncAPIInterface, using GMock.
class AsyncAPIMock : public AsyncAPIInterface {
public:
- AsyncAPIMock();
+ explicit AsyncAPIMock(bool default_do_commands);
virtual ~AsyncAPIMock();
+ error::Error FakeDoCommands(unsigned int num_commands,
+ const void* buffer,
+ int num_entries,
+ int* entries_processed);
+
// Predicate that matches args passed to DoCommand, by looking at the values.
class IsArgs {
public:
@@ -56,6 +61,12 @@ class AsyncAPIMock : public AsyncAPIInterface {
unsigned int arg_count,
const void* cmd_data));
+ MOCK_METHOD4(DoCommands,
+ error::Error(unsigned int num_commands,
+ const void* buffer,
+ int num_entries,
+ int* entries_processed));
+
const char* GetCommandName(unsigned int command_id) const {
return "";
};
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler_unittest.cc ('k') | gpu/command_buffer/service/mocks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698