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

Issue 1772393002: Frames received after guest detaches should be displayed. (Closed)

Created:
4 years, 9 months ago by wjmaclean
Modified:
4 years, 9 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Frames received after guest detaches should be displayed. In RenderWidgetHostViewGuest::OnSwapCompositorFrame() we currently detect if the guest has been detached, and if it has we clear the compositor surface and exit without processing the frame we've been given. Based on the repro app in the associated bug, it seems that if this happens, it prevents subsequent frames from being sent, presumably on account of the most recent frame remaining unsatisfied. This CL modifies the logic to complete processing of the frame, and then clearing the surface. This appears to prevent the behaviour observed in the bug. BUG=581440 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/17f1c1ded552cbcd11cac1b7985593ea2c847808 Cr-Commit-Position: refs/heads/master@{#380134}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove unnecessary variable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1772393002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1772393002/1
4 years, 9 months ago (2016-03-08 15:28:56 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/32961)
4 years, 9 months ago (2016-03-08 15:46:39 UTC) #5
wjmaclean
Hi ... could you both please take a quick look at a *small* CL and ...
4 years, 9 months ago (2016-03-08 15:50:12 UTC) #8
wjmaclean
https://codereview.chromium.org/1772393002/diff/1/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/1772393002/diff/1/content/browser/frame_host/render_widget_host_view_guest.cc#newcode213 content/browser/frame_host/render_widget_host_view_guest.cc:213: bool should_clear_compositor_surface_on_exit = !guest_ || !guest_->attached(); We don't actually ...
4 years, 9 months ago (2016-03-08 16:13:07 UTC) #9
jbauman
lgtm. If we just throw away the frame then ViewMsg_SwapCompositorFrameAck won't be sent, so this ...
4 years, 9 months ago (2016-03-08 22:02:29 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1772393002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1772393002/20001
4 years, 9 months ago (2016-03-08 22:29:35 UTC) #12
wjmaclean
nasko@ - PTAL?
4 years, 9 months ago (2016-03-08 22:29:59 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-08 23:50:33 UTC) #17
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-09 13:50:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1772393002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1772393002/20001
4 years, 9 months ago (2016-03-09 14:09:49 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-09 14:13:59 UTC) #24
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/17f1c1ded552cbcd11cac1b7985593ea2c847808 Cr-Commit-Position: refs/heads/master@{#380134}
4 years, 9 months ago (2016-03-09 14:14:53 UTC) #26
kenrb
4 years, 9 months ago (2016-03-09 14:53:25 UTC) #27
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698