diff options
author | boliu <boliu@chromium.org> | 2015-01-23 15:52:54 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-23 23:53:43 +0000 |
commit | 348699274b88544017815231a333b0ed02055986 (patch) | |
tree | 00d208ba1e4291521c143c57d2d8bb0587736563 /gpu | |
parent | 5c0f0e0fd056bb8eaaf1c2215fe664a1e8466cde (diff) | |
download | chromium_src-348699274b88544017815231a333b0ed02055986.zip chromium_src-348699274b88544017815231a333b0ed02055986.tar.gz chromium_src-348699274b88544017815231a333b0ed02055986.tar.bz2 |
gpu: Match in-process idle work delay
Use 2ms which is used by GpuCommandBufferStub. This helps
throughput of idle work like the idle uploader.
BUG=448168
Review URL: https://codereview.chromium.org/851473003
Cr-Commit-Position: refs/heads/master@{#312969}
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/service/in_process_command_buffer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc index 3c2f5ce..7a6556b 100644 --- a/gpu/command_buffer/service/in_process_command_buffer.cc +++ b/gpu/command_buffer/service/in_process_command_buffer.cc @@ -101,8 +101,9 @@ void GpuInProcessThread::ScheduleTask(const base::Closure& task) { } void GpuInProcessThread::ScheduleIdleWork(const base::Closure& callback) { + // Match delay with GpuCommandBufferStub. message_loop()->PostDelayedTask( - FROM_HERE, callback, base::TimeDelta::FromMilliseconds(5)); + FROM_HERE, callback, base::TimeDelta::FromMilliseconds(2)); } scoped_refptr<gles2::ShaderTranslatorCache> |