Chromium Code Reviews| 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 013d4392c7df949c2c7a5b6e2b8ce6aed81b4912..d4395031c102208fcc016fdd09f71e297b4e6dff 100644 |
| --- a/content/browser/renderer_host/render_widget_host_impl.cc |
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc |
| @@ -554,6 +554,8 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) { |
| IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText) |
| IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame, |
| OnSwapCompositorFrame(msg)) |
| + IPC_MESSAGE_HANDLER(ViewHostMsg_BeginFrameDidNotDraw, |
| + OnBeginFrameDidNotDraw) |
|
brianderson
2017/03/13 22:55:39
Here and elsewhere: Can you call this OnBeginFrame
Eric Seckler
2017/03/14 11:13:41
Done.
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) |
| IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor) |
| IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged, |
| @@ -1863,6 +1865,12 @@ bool RenderWidgetHostImpl::OnSwapCompositorFrame( |
| return true; |
| } |
| +void RenderWidgetHostImpl::OnBeginFrameDidNotDraw( |
| + const cc::BeginFrameAck& ack) { |
| + if (view_) |
| + view_->OnBeginFrameDidNotDraw(ack); |
|
brianderson
2017/03/13 22:55:39
Since this is conditional, should the state in the
Eric Seckler
2017/03/14 11:13:41
I don't think we can track the lcbfsn in RWHI, sin
|
| +} |
| + |
| void RenderWidgetHostImpl::OnUpdateRect( |
| const ViewHostMsg_UpdateRect_Params& params) { |
| TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::OnUpdateRect"); |