diff options
author | brianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-26 10:39:31 +0000 |
---|---|---|
committer | brianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-26 10:39:31 +0000 |
commit | 971728ddadeeddd13c62aa18b47fc5d24363ae64 (patch) | |
tree | 1136bc04ad53d83627917b86364d2248ec619849 /cc/trees/proxy.h | |
parent | d3cbda82eef3ace61ef147b27438cbb6ea5b0202 (diff) | |
download | chromium_src-971728ddadeeddd13c62aa18b47fc5d24363ae64.zip chromium_src-971728ddadeeddd13c62aa18b47fc5d24363ae64.tar.gz chromium_src-971728ddadeeddd13c62aa18b47fc5d24363ae64.tar.bz2 |
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
Diffstat (limited to 'cc/trees/proxy.h')
-rw-r--r-- | cc/trees/proxy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/trees/proxy.h b/cc/trees/proxy.h index 84844c8..69975a6 100644 --- a/cc/trees/proxy.h +++ b/cc/trees/proxy.h @@ -81,6 +81,7 @@ class CC_EXPORT Proxy { virtual void MainThreadHasStoppedFlinging() = 0; virtual bool CommitRequested() const = 0; + virtual bool BeginMainFrameRequested() const = 0; // Must be called before using the proxy. virtual void Start(scoped_ptr<OutputSurface> first_output_surface) = 0; |