Index: content/browser/renderer_host/render_widget_host_view_android.h |
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h |
index 91f9d483731a958e316bb66a69f8ccea1c5f0e67..a97958b480da6a6c04dbb075565a5421d559aa20 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.h |
+++ b/content/browser/renderer_host/render_widget_host_view_android.h |
@@ -247,6 +247,11 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid |
const TextSurroundingSelectionCallback& callback); |
private: |
+ enum VSyncSubscriberType { |
+ INPUT = 1 << 0, |
+ BEGIN_FRAME = 1 << 1 |
+ }; |
+ |
// TouchSelectionControllerClient implementation. |
virtual bool SupportsAnimation() const OVERRIDE; |
virtual void SetNeedsAnimate() OVERRIDE; |
@@ -317,6 +322,10 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid |
float GetDpiScale() const; |
+ // type is a bit field containing one or more VSyncSubscriberType. |
+ void SubscribeToVSync(uint32 type); |
+ void UnsubscribeToVSync(uint32 type); |
+ |
// The model object. |
RenderWidgetHostImpl* host_; |
@@ -379,10 +388,11 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid |
const bool using_synchronous_compositor_; |
+ uint32 vsync_subscribers_bitmask_; |
+ |
scoped_ptr<DelegatedFrameEvictor> frame_evictor_; |
size_t locks_on_frame_count_; |
- bool observing_root_window_; |
struct LastFrameInfo { |
LastFrameInfo(uint32 output_id, |