| Index: content/browser/renderer_host/render_widget_host_view_aura.h
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
|
| index f333037480c779895e868d1265c85d8dd6f3d5ea..65b18e05f84b8a3bda560f346317a5e54778fd60 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_aura.h
|
| +++ b/content/browser/renderer_host/render_widget_host_view_aura.h
|
| @@ -21,10 +21,10 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "build/build_config.h"
|
| +#include "cc/scheduler/begin_frame_source.h"
|
| #include "content/browser/accessibility/browser_accessibility_manager.h"
|
| #include "content/browser/compositor/image_transport_factory.h"
|
| #include "content/browser/compositor/owned_mailbox.h"
|
| -#include "content/browser/renderer_host/begin_frame_observer_proxy.h"
|
| #include "content/browser/renderer_host/delegated_frame_host.h"
|
| #include "content/browser/renderer_host/render_widget_host_view_base.h"
|
| #include "content/common/content_export.h"
|
| @@ -92,14 +92,14 @@ class TouchSelectionControllerClientAura;
|
| class CONTENT_EXPORT RenderWidgetHostViewAura
|
| : public RenderWidgetHostViewBase,
|
| public DelegatedFrameHostClient,
|
| - public BeginFrameObserverProxyClient,
|
| public ui::TextInputClient,
|
| public gfx::DisplayObserver,
|
| public aura::WindowTreeHostObserver,
|
| public aura::WindowDelegate,
|
| public aura::client::ActivationDelegate,
|
| public aura::client::FocusChangeObserver,
|
| - public aura::client::CursorClientObserver {
|
| + public aura::client::CursorClientObserver,
|
| + public cc::BeginFrameObserverBase {
|
| public:
|
| // When |is_guest_view_hack| is true, this view isn't really the view for
|
| // the |widget|, a RenderWidgetHostViewGuest is.
|
| @@ -460,9 +460,11 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
|
| void DelegatedFrameHostUpdateVSyncParameters(
|
| const base::TimeTicks& timebase,
|
| const base::TimeDelta& interval) override;
|
| + void SetBeginFrameSource(cc::BeginFrameSource* source) override;
|
|
|
| - // BeginFrameObserverProxyClient implementation.
|
| - void SendBeginFrame(const cc::BeginFrameArgs& args) override;
|
| + // cc::BeginFrameObserverBase implementation.
|
| + bool OnBeginFrameDerivedImpl(const cc::BeginFrameArgs& args) override;
|
| + void OnBeginFrameSourcePausedChanged(bool paused) override;
|
|
|
| // Detaches |this| from the input method object.
|
| void DetachFromInputMethod();
|
| @@ -592,6 +594,10 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
|
| // Current tooltip text.
|
| base::string16 tooltip_;
|
|
|
| + // The begin frame source being observed. Null if none.
|
| + cc::BeginFrameSource* begin_frame_source_;
|
| + bool needs_begin_frames_;
|
| +
|
| // Used to record the last position of the mouse.
|
| // While the mouse is locked, they store the last known position just as mouse
|
| // lock was entered.
|
| @@ -670,8 +676,6 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
|
| // compositing surface and showing the disambiguation popup.
|
| gfx::Vector2dF disambiguation_scroll_offset_;
|
|
|
| - BeginFrameObserverProxy begin_frame_observer_proxy_;
|
| -
|
| // This flag when set ensures that we send over a notification to blink that
|
| // the current view has focus. Defaults to false.
|
| bool set_focus_on_mouse_down_or_key_event_;
|
|
|