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

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

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: remove ExternalBFS::OnDidFinishFrame and related ack tracking. Created 3 years, 7 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 56a2d9411448d6812f1f39b86c0e35859ca62a07..a1278d7e8b2b1e070b4cbe89d96234e7b0c1c77b 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -563,7 +563,8 @@ bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) {
OnUpdateScreenRectsAck)
IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove)
IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText)
- IPC_MESSAGE_HANDLER(ViewHostMsg_BeginFrameDidNotSwap, BeginFrameDidNotSwap)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_BeginFrameDidNotProduceFrame,
+ BeginFrameDidNotProduceFrame)
IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect)
IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor)
IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged,
@@ -1943,13 +1944,14 @@ void RenderWidgetHostImpl::OnRequestMove(const gfx::Rect& pos) {
}
}
-void RenderWidgetHostImpl::BeginFrameDidNotSwap(const cc::BeginFrameAck& ack) {
+void RenderWidgetHostImpl::BeginFrameDidNotProduceFrame(
+ const cc::BeginFrameAck& ack) {
// |has_damage| is not transmitted.
cc::BeginFrameAck modified_ack = ack;
modified_ack.has_damage = false;
if (view_)
- view_->OnBeginFrameDidNotSwap(modified_ack);
+ view_->OnBeginFrameDidNotProduceFrame(modified_ack);
}
void RenderWidgetHostImpl::OnUpdateRect(

Powered by Google App Engine
This is Rietveld 408576698