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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/command_executor.cc
diff --git a/gpu/command_buffer/service/command_executor.cc b/gpu/command_buffer/service/command_executor.cc
index f541a537f80988bd0f5fef37e08d4b6bcaa41418..ff7a910bf86a8263b70eae0440746003f5295e2b 100644
--- a/gpu/command_buffer/service/command_executor.cc
+++ b/gpu/command_buffer/service/command_executor.cc
@@ -177,4 +177,14 @@ void CommandExecutor::PerformIdleWork() {
decoder_->PerformIdleWork();
}
+bool CommandExecutor::HasPollingWork() const {
+ return (decoder_ && decoder_->HasPollingWork());
+}
+
+void CommandExecutor::PerformPollingWork() {
+ if (!decoder_)
+ return;
+ decoder_->PerformPollingWork();
+}
+
} // namespace gpu
« 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