| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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/tests/gl_manager.h" | 5 #include "gpu/command_buffer/tests/gl_manager.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 } | 252 } |
| 253 } | 253 } |
| 254 | 254 |
| 255 const gpu::gles2::FeatureInfo::Workarounds& GLManager::workarounds() const { | 255 const gpu::gles2::FeatureInfo::Workarounds& GLManager::workarounds() const { |
| 256 return decoder_->GetContextGroup()->feature_info()->workarounds(); | 256 return decoder_->GetContextGroup()->feature_info()->workarounds(); |
| 257 } | 257 } |
| 258 | 258 |
| 259 void GLManager::PumpCommands() { | 259 void GLManager::PumpCommands() { |
| 260 decoder_->MakeCurrent(); | 260 decoder_->MakeCurrent(); |
| 261 gpu_scheduler_->PutChanged(); | 261 gpu_scheduler_->PutChanged(); |
| 262 ::gpu::CommandBuffer::State state = command_buffer_->GetState(); | 262 ::gpu::CommandBuffer::State state = command_buffer_->GetLastState(); |
| 263 if (!context_lost_allowed_) { | 263 if (!context_lost_allowed_) { |
| 264 ASSERT_EQ(::gpu::error::kNoError, state.error); | 264 ASSERT_EQ(::gpu::error::kNoError, state.error); |
| 265 } | 265 } |
| 266 } | 266 } |
| 267 | 267 |
| 268 bool GLManager::GetBufferChanged(int32 transfer_buffer_id) { | 268 bool GLManager::GetBufferChanged(int32 transfer_buffer_id) { |
| 269 return gpu_scheduler_->SetGetBuffer(transfer_buffer_id); | 269 return gpu_scheduler_->SetGetBuffer(transfer_buffer_id); |
| 270 } | 270 } |
| 271 | 271 |
| 272 } // namespace gpu | 272 } // namespace gpu |
| OLD | NEW |