Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1296)

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2740833005: [cc] Pass on BeginFrameAcks from CompositorEBFS through RWHVAura, DFH. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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");

Powered by Google App Engine
This is Rietveld 408576698