| 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/service/command_executor.h" | 5 #include "gpu/command_buffer/service/command_executor.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 bool CommandExecutor::HasMoreIdleWork() const { | 170 bool CommandExecutor::HasMoreIdleWork() const { |
| 171 return (decoder_ && decoder_->HasMoreIdleWork()); | 171 return (decoder_ && decoder_->HasMoreIdleWork()); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void CommandExecutor::PerformIdleWork() { | 174 void CommandExecutor::PerformIdleWork() { |
| 175 if (!decoder_) | 175 if (!decoder_) |
| 176 return; | 176 return; |
| 177 decoder_->PerformIdleWork(); | 177 decoder_->PerformIdleWork(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 bool CommandExecutor::HasPollingWork() const { |
| 181 return (decoder_ && decoder_->HasPollingWork()); |
| 182 } |
| 183 |
| 184 void CommandExecutor::PerformPollingWork() { |
| 185 if (!decoder_) |
| 186 return; |
| 187 decoder_->PerformPollingWork(); |
| 188 } |
| 189 |
| 180 } // namespace gpu | 190 } // namespace gpu |
| OLD | NEW |