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 be47663512c2c7d79af0f2980cb89def1911fccc..c1b7aaa30d45b03eb5db7c72c24fd3631191dba9 100644 |
--- a/gpu/command_buffer/service/gpu_scheduler.cc |
+++ b/gpu/command_buffer/service/gpu_scheduler.cc |
@@ -117,6 +117,16 @@ const unsigned int kMaxOutstandingSwapBuffersCallsPerOnscreenContext = 1; |
} |
#endif |
+void GpuScheduler::PutChanged(bool sync) { |
+ CommandBuffer::State state = command_buffer_->GetState(); |
+ parser_->set_put(state.put_offset); |
+ |
+ if (sync) |
+ ProcessCommands(); |
+ else |
+ ScheduleProcessCommands(); |
+} |
+ |
void GpuScheduler::ProcessCommands() { |
GPU_TRACE_EVENT0("gpu", "GpuScheduler:ProcessCommands"); |
CommandBuffer::State state = command_buffer_->GetState(); |
@@ -134,8 +144,6 @@ void GpuScheduler::ProcessCommands() { |
} |
} |
- parser_->set_put(state.put_offset); |
- |
#if defined(OS_MACOSX) |
bool do_rate_limiting = surface_.get() != NULL; |
// Don't swamp the browser process with SwapBuffers calls it can't handle. |