Home | History | Annotate | Download | only in service
      1 // Copyright (c) 2012 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 "base/threading/thread.h"
      6 #include "base/time/time.h"
      7 #include "gpu/command_buffer/service/gpu_scheduler.h"
      8 #include "gpu/command_buffer/service/mocks.h"
      9 
     10 namespace gpu {
     11 
     12 AsyncAPIMock::AsyncAPIMock() {
     13   testing::DefaultValue<error::Error>::Set(
     14       error::kNoError);
     15 }
     16 
     17 AsyncAPIMock::~AsyncAPIMock() {}
     18 
     19 void AsyncAPIMock::SetToken(unsigned int command,
     20                             unsigned int arg_count,
     21                             const void* _args) {
     22   DCHECK(engine_);
     23   DCHECK_EQ(1u, command);
     24   DCHECK_EQ(1u, arg_count);
     25   const cmd::SetToken* args =
     26       static_cast<const cmd::SetToken*>(_args);
     27   engine_->set_token(args->token);
     28 }
     29 
     30 namespace gles2 {
     31 
     32 MockShaderTranslator::MockShaderTranslator() {}
     33 
     34 MockShaderTranslator::~MockShaderTranslator() {}
     35 
     36 MockProgramCache::MockProgramCache() {}
     37 MockProgramCache::~MockProgramCache() {}
     38 
     39 MockMemoryTracker::MockMemoryTracker() {}
     40 MockMemoryTracker::~MockMemoryTracker() {}
     41 
     42 }  // namespace gles2
     43 }  // namespace gpu
     44 
     45 
     46