OLD | NEW |
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 MockGLES2Decoder::MockGLES2Decoder() | 10 MockGLES2Decoder::MockGLES2Decoder() |
11 : GLES2Decoder() { | 11 : GLES2Decoder() { |
12 ON_CALL(*this, GetCommandName(testing::_)) | 12 ON_CALL(*this, GetCommandName(testing::_)) |
13 .WillByDefault(testing::Return("")); | 13 .WillByDefault(testing::Return("")); |
14 ON_CALL(*this, MakeCurrent()) | 14 ON_CALL(*this, MakeCurrent()) |
15 .WillByDefault(testing::Return(true)); | 15 .WillByDefault(testing::Return(true)); |
16 } | 16 } |
17 | 17 |
18 MockGLES2Decoder::~MockGLES2Decoder() {} | 18 MockGLES2Decoder::~MockGLES2Decoder() {} |
19 | 19 |
| 20 error::Error MockGLES2Decoder::FakeDoCommands(unsigned int num_commands, |
| 21 const void* buffer, |
| 22 int num_entries, |
| 23 int* entries_processed) { |
| 24 return AsyncAPIInterface::DoCommands( |
| 25 num_commands, buffer, num_entries, entries_processed); |
| 26 } |
| 27 |
20 } // namespace gles2 | 28 } // namespace gles2 |
21 } // namespace gpu | 29 } // namespace gpu |
OLD | NEW |