summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/gpu_scheduler.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/gpu_scheduler.h')
-rw-r--r--gpu/command_buffer/service/gpu_scheduler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gpu_scheduler.h b/gpu/command_buffer/service/gpu_scheduler.h
index d75beae..b49713f 100644
--- a/gpu/command_buffer/service/gpu_scheduler.h
+++ b/gpu/command_buffer/service/gpu_scheduler.h
@@ -39,6 +39,10 @@ class ContextGroup;
// posts tasks to the current message loop to do additional work.
class GpuScheduler : public CommandBufferEngine {
public:
+ // Scheduler quantum: makes ProcessCommands continue until the specified time
+ // has passed, or the command buffer yields or runs out of commands.
+ static const int kMinimumSchedulerQuantumMicros = 2000;
+
// If a group is not passed in one will be created.
GpuScheduler(CommandBuffer* command_buffer,
SurfaceManager* surface_manager,