Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: gpu/command_buffer/service/command_executor.cc

Issue 2056413003: Fix a bug in the implementation of DescheduleUntilFinishedCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile error on windows. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/command_executor.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698