diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 01:09:05 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 01:09:05 +0000 |
commit | 52ccd0eafdc55341868e1fb6e30d18a3638553f0 (patch) | |
tree | 5df6accfcf1ad5b6be4577846191d8331475686a /chrome/renderer/render_widget.h | |
parent | 8355d3b353688885d69c5e46795029284eba901e (diff) | |
download | chromium_src-52ccd0eafdc55341868e1fb6e30d18a3638553f0.zip chromium_src-52ccd0eafdc55341868e1fb6e30d18a3638553f0.tar.gz chromium_src-52ccd0eafdc55341868e1fb6e30d18a3638553f0.tar.bz2 |
Simple scheduling for requestAnimationFrame
This simplifies the schedule for requestAnimationFrame callbacks and always invokes
the callbacks from the top of DoDeferredUpdate. Also adds a histogram for catch-up
timers so we can more easily quantify the effects of base::Time / base::TimeTicks
skew.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6519005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75043 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_widget.h')
-rw-r--r-- | chrome/renderer/render_widget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/render_widget.h b/chrome/renderer/render_widget.h index dac1efa..aecdb29 100644 --- a/chrome/renderer/render_widget.h +++ b/chrome/renderer/render_widget.h @@ -159,9 +159,9 @@ class RenderWidget : public IPC::Channel::Listener, // Paints a border at the given rect for debugging purposes. void PaintDebugBorder(const gfx::Rect& rect, skia::PlatformCanvas* canvas); + void AnimationCallback(); + void AnimateIfNeeded(); void CallDoDeferredUpdate(); - void UpdateAnimationsIfNeeded(); - void UpdateAnimationsAndFloorTime(); void DoDeferredUpdate(); void DoDeferredClose(); void DoDeferredSetWindowRect(const WebKit::WebRect& pos); @@ -373,7 +373,7 @@ class RenderWidget : public IPC::Channel::Listener, base::Time animation_floor_time_; bool animation_update_pending_; - bool animation_waiting_for_paint_; + bool animation_task_posted_; DISALLOW_COPY_AND_ASSIGN(RenderWidget); }; |