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

Issue 2242613003: Hoist SetNeedsBeginFrame messages up to the RWHostImpl (Closed)

Created:
4 years, 4 months ago by enne (OOO)
Modified:
4 years, 4 months ago
Reviewers:
no sievers, piman
CC:
chromium-reviews, creis+watch_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, nasko+codewatch_chromium.org, nona+watch_chromium.org, piman+watch_chromium.org, shuchen+watch_chromium.org, sievers+watch_chromium.org, James Su, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hoist SetNeedsBeginFrame messages up to the RWHostImpl Previously, each RenderWidgetHostView class handled all of the SetNeedsBeginFrameMessages sent from the renderer. However, in the case that the render widget is initialized before the view is set, then the SetNeedsBeginFrame message is dropped and then that renderer is never ticked with begin frame messages. To fix this, have the RenderWidgetHostImpl handle SetNeedsBeginFrame messages, remember the value, and forward it to the view whenever the view is set so the message is not lost. R=sievers@chromium.org BUG=635476 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/71de85ec0f6f6259824758b10db751b65b005bd2 Cr-Commit-Position: refs/heads/master@{#413533}

Patch Set 1 #

Patch Set 2 : Update comment #

Patch Set 3 : Fix TestRenderWidgetHostView #

Patch Set 4 : Fix redundant set needs begin frames #

Total comments: 4

Patch Set 5 : Remove base class call #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -68 lines) Patch
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 3 4 chunks +1 line, -4 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 4 chunks +9 lines, -22 lines 1 comment Download
M content/browser/frame_host/render_widget_host_view_guest.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 3 chunks +17 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 3 chunks +1 line, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 4 chunks +9 lines, -23 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mus.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mus.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/render_widget_host_view.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/test/test_render_view_host.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (27 generated)
enne (OOO)
4 years, 4 months ago (2016-08-11 22:43:28 UTC) #2
enne (OOO)
I fixed the test errors, so this should be ready for review.
4 years, 4 months ago (2016-08-12 21:54:24 UTC) #15
no sievers
https://codereview.chromium.org/2242613003/diff/60001/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/2242613003/diff/60001/content/browser/frame_host/render_widget_host_view_guest.cc#newcode255 content/browser/frame_host/render_widget_host_view_guest.cc:255: RenderWidgetHostViewChildFrame::SetNeedsBeginFrames(needs_begin_frames); Is this an intentional change in behavior that ...
4 years, 4 months ago (2016-08-15 17:39:13 UTC) #16
enne (OOO)
https://codereview.chromium.org/2242613003/diff/60001/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/2242613003/diff/60001/content/browser/frame_host/render_widget_host_view_guest.cc#newcode255 content/browser/frame_host/render_widget_host_view_guest.cc:255: RenderWidgetHostViewChildFrame::SetNeedsBeginFrames(needs_begin_frames); On 2016/08/15 at 17:39:13, sievers wrote: > Is ...
4 years, 4 months ago (2016-08-15 20:49:36 UTC) #17
enne (OOO)
Ping?
4 years, 4 months ago (2016-08-17 20:01:59 UTC) #22
enne (OOO)
sievers appears like he'll be out for the rest of the week. +piman as content ...
4 years, 4 months ago (2016-08-18 00:37:17 UTC) #28
no sievers
lgtm with 1 comment https://codereview.chromium.org/2242613003/diff/80001/content/browser/frame_host/render_widget_host_view_child_frame.cc File content/browser/frame_host/render_widget_host_view_child_frame.cc (left): https://codereview.chromium.org/2242613003/diff/80001/content/browser/frame_host/render_widget_host_view_child_frame.cc#oldcode669 content/browser/frame_host/render_widget_host_view_child_frame.cc:669: bool needs_begin_frames) { I don't ...
4 years, 4 months ago (2016-08-22 18:13:56 UTC) #31
enne (OOO)
Thanks. I'll look into simplifying this in a followup patch.
4 years, 4 months ago (2016-08-22 18:25:15 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2242613003/80001
4 years, 4 months ago (2016-08-22 19:00:56 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-22 21:12:19 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 21:13:42 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/71de85ec0f6f6259824758b10db751b65b005bd2
Cr-Commit-Position: refs/heads/master@{#413533}

Powered by Google App Engine
This is Rietveld 408576698