Index: content/browser/renderer_host/render_widget_host_view_aura.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc |
index 71d03da56bd6c6ee4cda058a688a2aaca8a90626..502a7b88db72ee01e86f4811422a218430e8dd8d 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc |
@@ -63,7 +63,6 @@ |
#include "ui/base/hit_test.h" |
#include "ui/base/ime/input_method.h" |
#include "ui/base/ui_base_types.h" |
-#include "ui/compositor/compositor_vsync_manager.h" |
#include "ui/compositor/dip_util.h" |
#include "ui/events/event.h" |
#include "ui/events/event_utils.h" |
@@ -414,7 +413,7 @@ RenderWidgetHostViewAura::RenderWidgetHostViewAura(RenderWidgetHost* host, |
bool is_guest_view_hack) |
: host_(RenderWidgetHostImpl::From(host)), |
window_(new aura::Window(this)), |
- delegated_frame_host_(new DelegatedFrameHost(this)), |
+ delegated_frame_host_(new DelegatedFrameHost(this, true)), |
in_shutdown_(false), |
in_bounds_changed_(false), |
is_fullscreen_(false), |
@@ -467,6 +466,8 @@ bool RenderWidgetHostViewAura::OnMessageReceived( |
// RenderWidgetHostViewAndroid should also be moved at the same time. |
IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged, |
OnTextInputStateChanged) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames, |
+ OnSetNeedsBeginFrames) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -2598,8 +2599,12 @@ SkColorType RenderWidgetHostViewAura::PreferredReadbackFormat() { |
return kN32_SkColorType; |
} |
+void RenderWidgetHostViewAura::OnSetNeedsBeginFrames(bool needs_begin_frames) { |
+ delegated_frame_host_->OnSetNeedsBeginFrames(needs_begin_frames); |
+} |
+ |
//////////////////////////////////////////////////////////////////////////////// |
-// DelegatedFrameHost, public: |
+// DelegatedFrameHostClient, public: |
ui::Layer* RenderWidgetHostViewAura::DelegatedFrameHostGetLayer() const { |
return window_->layer(); |
@@ -2661,10 +2666,9 @@ void RenderWidgetHostViewAura::DelegatedFrameHostOnLostCompositorResources() { |
host_->ScheduleComposite(); |
} |
-void RenderWidgetHostViewAura::DelegatedFrameHostUpdateVSyncParameters( |
- const base::TimeTicks& timebase, |
- const base::TimeDelta& interval) { |
- host_->UpdateVSyncParameters(timebase, interval); |
+void RenderWidgetHostViewAura::DelegatedFrameHostSendBeginFrame( |
+ const cc::BeginFrameArgs& args) { |
+ host_->Send(new ViewMsg_BeginFrame(host_->GetRoutingID(), args)); |
} |
void RenderWidgetHostViewAura::OnDidNavigateMainFrameToNewPage() { |