Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3893)

Unified Diff: chrome/renderer/render_widget.h

Issue 6136005: Chromium support for window.webkitRequestAnimationFrame() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ScheduleAnimation implemented as part of WebWidgetHost Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/render_widget.h
diff --git a/chrome/renderer/render_widget.h b/chrome/renderer/render_widget.h
index ed99bbd9758823db26a40bb84ee43232d8c5f0a2..1d9391cbe8b68910832c57e725cf4fdccbb76a68 100644
--- a/chrome/renderer/render_widget.h
+++ b/chrome/renderer/render_widget.h
@@ -102,6 +102,7 @@ class RenderWidget : public IPC::Channel::Listener,
virtual void didScrollRect(int dx, int dy, const WebKit::WebRect& clipRect);
virtual void didActivateAcceleratedCompositing(bool active);
virtual void scheduleComposite();
+ virtual void scheduleAnimation();
virtual void didFocus();
virtual void didBlur();
virtual void didChangeCursor(const WebKit::WebCursorInfo&);
@@ -159,6 +160,7 @@ class RenderWidget : public IPC::Channel::Listener,
void PaintDebugBorder(const gfx::Rect& rect, skia::PlatformCanvas* canvas);
void CallDoDeferredUpdate();
+ void UpdateAnimationsIfNeeded();
void DoDeferredUpdate();
void DoDeferredClose();
void DoDeferredSetWindowRect(const WebKit::WebRect& pos);
@@ -364,6 +366,9 @@ class RenderWidget : public IPC::Channel::Listener,
// compositor.
bool is_accelerated_compositing_active_;
+ base::Time animation_floor_time_;
+ bool animation_update_pending_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidget);
};

Powered by Google App Engine
This is Rietveld 408576698