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

Unified Diff: gpu/command_buffer/service/gpu_scheduler.cc

Issue 12040049: gpu: Implement idle async pixel transfers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add DCHECKs to ensure idle async uploads are only used with GL_TEXTURE_2D target Created 7 years, 9 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/gpu_scheduler.h ('k') | ui/gl/async_pixel_transfer_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61bdcf8470e652631741885edcef724f8f94fb81..29ea7fdd507fca7c6742bb04f0afccbd04489e35 100644
--- a/gpu/command_buffer/service/gpu_scheduler.cc
+++ b/gpu/command_buffer/service/gpu_scheduler.cc
@@ -168,7 +168,8 @@ bool GpuScheduler::IsScheduled() {
bool GpuScheduler::HasMoreWork() {
return !unschedule_fences_.empty() ||
- (decoder_ && decoder_->ProcessPendingQueries());
+ (decoder_ && decoder_->ProcessPendingQueries()) ||
+ HasMoreIdleWork();
}
void GpuScheduler::SetSchedulingChangedCallback(
@@ -269,6 +270,16 @@ bool GpuScheduler::IsPreempted() {
return preemption_flag_->IsSet();
}
+bool GpuScheduler::HasMoreIdleWork() {
+ return (decoder_ && decoder_->HasMoreIdleWork());
+}
+
+void GpuScheduler::PerformIdleWork() {
+ if (!decoder_)
+ return;
+ decoder_->PerformIdleWork();
+}
+
void GpuScheduler::RescheduleTimeOut() {
int new_count = unscheduled_count_ + rescheduled_count_;
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler.h ('k') | ui/gl/async_pixel_transfer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698