Index: gpu/command_buffer/service/gpu_scheduler.cc |
diff --git a/gpu/command_buffer/service/gpu_scheduler.cc b/gpu/command_buffer/service/gpu_scheduler.cc |
index 2a15dc76f9c06d14914f5b2470a5c758f8eeeb4e..a8596195cdf5a8fa09965cd40a1fac4baaa6f644 100644 |
--- a/gpu/command_buffer/service/gpu_scheduler.cc |
+++ b/gpu/command_buffer/service/gpu_scheduler.cc |
@@ -161,9 +161,14 @@ bool GpuScheduler::IsScheduled() { |
return unscheduled_count_ == 0; |
} |
-bool GpuScheduler::HasMoreWork() { |
- return (decoder_ && decoder_->ProcessPendingQueries(false)) || |
- HasMoreIdleWork(); |
+bool GpuScheduler::HasPendingQueries() const { |
+ return (decoder_ && decoder_->HasPendingQueries()); |
+} |
+ |
+void GpuScheduler::ProcessPendingQueries() { |
+ if (!decoder_) |
+ return; |
+ decoder_->ProcessPendingQueries(false); |
} |
void GpuScheduler::SetSchedulingChangedCallback( |
@@ -229,7 +234,7 @@ bool GpuScheduler::IsPreempted() { |
return preemption_flag_->IsSet(); |
} |
-bool GpuScheduler::HasMoreIdleWork() { |
+bool GpuScheduler::HasMoreIdleWork() const { |
return (decoder_ && decoder_->HasMoreIdleWork()); |
} |