MouseMove when the mouse is down to signal compositor priority
commit1924435ea3211a836b7ef4f8a576285c3cf365f7
authoralexclarke <alexclarke@chromium.org>
Tue, 10 Feb 2015 15:22:30 +0000 (10 07:22 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 10 Feb 2015 15:23:12 +0000 (10 15:23 +0000)
tree7ef6d80f70f9f03424a85678f258f0f5d42d2c51
parent27b15618496eb3d04a1fe7daf1554239b0d624f6
MouseMove when the mouse is down to signal compositor priority

When the user is moving the mouse with the mouse button down it's quite
likely they're scrolling the page, or otherwise doing something where
they would expect the animation to be smooth.  Use this as a signal that
we should enter compositor prioirty mode.  Note this does mean that with
the mouse down every MouseMove event will cause us to lock a mutex and
call Now() (which should be OK). A policy update task is only posted
every 100ms.

TBR=sievers@chromium.org for the FakeRenderScheduler
BUG=391005

Review URL: https://codereview.chromium.org/902783003

Cr-Commit-Position: refs/heads/master@{#315566}
15 files changed:
content/renderer/input/input_handler_manager.cc
content/renderer/input/input_handler_manager.h
content/renderer/input/input_handler_proxy.cc
content/renderer/input/input_handler_proxy_client.h
content/renderer/input/input_handler_proxy_unittest.cc
content/renderer/input/input_handler_wrapper.cc
content/renderer/input/input_handler_wrapper.h
content/renderer/scheduler/null_renderer_scheduler.cc
content/renderer/scheduler/null_renderer_scheduler.h
content/renderer/scheduler/renderer_scheduler.h
content/renderer/scheduler/renderer_scheduler_impl.cc
content/renderer/scheduler/renderer_scheduler_impl.h
content/renderer/scheduler/renderer_scheduler_impl_unittest.cc
content/test/fake_renderer_scheduler.cc
content/test/fake_renderer_scheduler.h