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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_mock.cc

Issue 558513003: command_buffer: Batch command processing to reduce handler overheads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a bad return in DoCommand(). 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
Index: gpu/command_buffer/service/gles2_cmd_decoder_mock.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_mock.cc b/gpu/command_buffer/service/gles2_cmd_decoder_mock.cc
index a8e027d727610ba0ffabac866474262d138ad155..48ec885851a03281c42fd8c346fbc20656c03f4b 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_mock.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_mock.cc
@@ -7,6 +7,9 @@
namespace gpu {
namespace gles2 {
+using ::testing::_;
+using ::testing::Invoke;
vmiura 2014/09/09 01:16:10 I need to undo this redundant change.
vmiura 2014/09/09 01:38:56 Done.
+
MockGLES2Decoder::MockGLES2Decoder()
: GLES2Decoder() {
ON_CALL(*this, GetCommandName(testing::_))
@@ -17,5 +20,13 @@ MockGLES2Decoder::MockGLES2Decoder()
MockGLES2Decoder::~MockGLES2Decoder() {}
+error::Error MockGLES2Decoder::FakeDoCommands(unsigned int num_commands,
+ const void* buffer,
+ int num_entries,
+ int* entries_processed) {
+ return AsyncAPIInterface::DoCommands(
+ num_commands, buffer, num_entries, entries_processed);
+}
+
} // namespace gles2
} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698