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

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

Issue 6993032: GpuScheduler using time quantum to avoid too many PostTasks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: name change Created 9 years, 7 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 | « no previous file | gpu/command_buffer/service/gpu_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_scheduler.h
diff --git a/gpu/command_buffer/service/gpu_scheduler.h b/gpu/command_buffer/service/gpu_scheduler.h
index d75beae081f455e526dfb0ac94070ec05ec52505..b49713f0381c43690a268a0f42d0ec09a96b77ce 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,
« no previous file with comments | « no previous file | gpu/command_buffer/service/gpu_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698