OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "gpu/command_buffer/service/mocks.h" |
| 6 |
| 7 namespace gpu { |
| 8 |
| 9 AsyncAPIMock::AsyncAPIMock() { |
| 10 testing::DefaultValue<error::Error>::Set( |
| 11 error::kNoError); |
| 12 } |
| 13 |
| 14 AsyncAPIMock::~AsyncAPIMock() {} |
| 15 |
| 16 void AsyncAPIMock::SetToken(unsigned int command, |
| 17 unsigned int arg_count, |
| 18 const void* _args) { |
| 19 DCHECK(engine_); |
| 20 DCHECK_EQ(1u, command); |
| 21 DCHECK_EQ(1u, arg_count); |
| 22 const CommandBufferEntry* args = |
| 23 static_cast<const CommandBufferEntry*>(_args); |
| 24 engine_->set_token(args[0].value_uint32); |
| 25 } |
| 26 |
| 27 namespace gles2 { |
| 28 |
| 29 MockShaderTranslator::MockShaderTranslator() {} |
| 30 |
| 31 MockShaderTranslator::~MockShaderTranslator() {} |
| 32 |
| 33 } // namespace gles2 |
| 34 } // namespace gpu |
OLD | NEW |