| Index: content/browser/renderer_host/render_widget_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
| index 31906ffe23fd6825138234d6c2ce4015e0f07682..b2617567daaea87b02cf15c1e5eeab10e1c988d2 100644
|
| --- a/content/browser/renderer_host/render_widget_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
| @@ -302,6 +302,8 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) {
|
| OnMsgDidActivateAcceleratedCompositing)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnMsgLockMouse)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnMsgUnlockMouse)
|
| + IPC_MESSAGE_HANDLER(ViewHostMsg_SwapCompositorFrame,
|
| + OnMsgSwapCompositorFrame)
|
| #if defined(OS_POSIX) || defined(USE_AURA)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_GetWindowRect, OnMsgGetWindowRect)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_GetRootWindowRect, OnMsgGetRootWindowRect)
|
| @@ -1738,6 +1740,20 @@ void RenderWidgetHostImpl::OnMsgUnlockMouse() {
|
| RejectMouseLockOrUnlockIfNecessary();
|
| }
|
|
|
| +void RenderWidgetHostImpl::OnMsgSwapCompositorFrame(
|
| + const WebKit::WebCompositorFrame& frame) {
|
| + if (!view_) {
|
| + WebKit::WebCompositorFrameAck ack;
|
| + SwapCompositorFrameAck(ack);
|
| + }
|
| + view_->SwapCompositorFrame(frame);
|
| +}
|
| +
|
| +void RenderWidgetHostImpl::SwapCompositorFrameAck(
|
| + const WebKit::WebCompositorFrameAck& ack) {
|
| + Send(new ViewMsg_SwapCompositorFrameACK(routing_id_, ack));
|
| +}
|
| +
|
| #if defined(OS_POSIX) || defined(USE_AURA)
|
| void RenderWidgetHostImpl::OnMsgGetWindowRect(gfx::NativeViewId window_id,
|
| gfx::Rect* results) {
|
|
|