cc: Allow all types of pending commits to throttle input
commit971728ddadeeddd13c62aa18b47fc5d24363ae64
authorbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 26 Oct 2013 10:39:31 +0000 (26 10:39 +0000)
committerbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 26 Oct 2013 10:39:31 +0000 (26 10:39 +0000)
tree1136bc04ad53d83627917b86364d2248ec619849
parentd3cbda82eef3ace61ef147b27438cbb6ea5b0202
cc: Allow all types of pending commits to throttle input

SetNeedsCommit is currently the only method that throttles
input events. When SetNeedsUpdate was added to support
abortable commits, it inadvertantly disabled input throttling
for abortabe commits. SetNeesdAnimate has never throttled
input events, but there is not reason to treat it differently.

This patch throttles input for SetNeedsAnimate, SetNeedsUpdate
and SetNeedsCommit now.

BUG=305210

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231190 0039d316-1c4b-4281-b951-d872f2087c98
12 files changed:
cc/test/fake_proxy.cc
cc/test/fake_proxy.h
cc/trees/layer_tree_host.cc
cc/trees/layer_tree_host.h
cc/trees/proxy.h
cc/trees/single_thread_proxy.cc
cc/trees/single_thread_proxy.h
cc/trees/thread_proxy.cc
cc/trees/thread_proxy.h
content/renderer/gpu/render_widget_compositor.cc
content/renderer/gpu/render_widget_compositor.h
content/renderer/render_widget.cc