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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_mock.h"
6 6
7 namespace gpu { 7 namespace gpu {
8 namespace gles2 { 8 namespace gles2 {
9 9
10 using ::testing::_;
11 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.
12
10 MockGLES2Decoder::MockGLES2Decoder() 13 MockGLES2Decoder::MockGLES2Decoder()
11 : GLES2Decoder() { 14 : GLES2Decoder() {
12 ON_CALL(*this, GetCommandName(testing::_)) 15 ON_CALL(*this, GetCommandName(testing::_))
13 .WillByDefault(testing::Return("")); 16 .WillByDefault(testing::Return(""));
14 ON_CALL(*this, MakeCurrent()) 17 ON_CALL(*this, MakeCurrent())
15 .WillByDefault(testing::Return(true)); 18 .WillByDefault(testing::Return(true));
16 } 19 }
17 20
18 MockGLES2Decoder::~MockGLES2Decoder() {} 21 MockGLES2Decoder::~MockGLES2Decoder() {}
19 22
23 error::Error MockGLES2Decoder::FakeDoCommands(unsigned int num_commands,
24 const void* buffer,
25 int num_entries,
26 int* entries_processed) {
27 return AsyncAPIInterface::DoCommands(
28 num_commands, buffer, num_entries, entries_processed);
29 }
30
20 } // namespace gles2 31 } // namespace gles2
21 } // namespace gpu 32 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698