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

Issue 2832043002: ui: Prevent DelegatedFrameHost from taking CompositorResizeLock forever (Closed)

Created:
3 years, 8 months ago by danakj
Modified:
3 years, 8 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su, xjz+watch_chromium.org, miu+watch_chromium.org, enne (OOO), piman, oshima
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ui: Prevent DelegatedFrameHost from taking CompositorResizeLock forever In the case where DelegatedFrameHost has no frame, it is not showing a renderer tab contents, so it does not need to try prevent guttering. However it would grab a resize lock still, in some cases where it will never be receiving a frame from the renderer. When that happens the lock times out after 67ms and it grabs it again.. forever. This causes the UI to update at 15 fps instead of 60. This fixes it by not allowing a resize lock to be grabbed when |has_frame_| is false. And when |has_frame_| changes from true to false, any current resize lock is dropped, freeing up the UI to present itself. R=fsamuel@chromium.org, nick@chromium.org BUG=712903 Review-Url: https://codereview.chromium.org/2832043002 Cr-Commit-Position: refs/heads/master@{#466508} Committed: https://chromium.googlesource.com/chromium/src/+/8230eff799f34889d9ec93944a4e8f3147b91c17

Patch Set 1 #

Patch Set 2 : resizelocknoframe: fixtestcomments #

Patch Set 3 : resizelocknoframe: submitcomment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -0 lines) Patch
M content/browser/renderer_host/delegated_frame_host.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (22 generated)
danakj
fsamuel: PTAL ncarter: please give OWNERS review. I added Fady since he thinks about resize ...
3 years, 8 months ago (2017-04-20 22:52:33 UTC) #4
Fady Samuel
LGTM! Thanks! I ran into both cases actually with frame eviction and hidden clients that ...
3 years, 8 months ago (2017-04-20 23:01:10 UTC) #7
danakj
Small fix in the test to improve comments
3 years, 8 months ago (2017-04-20 23:03:48 UTC) #9
danakj
nick: bump
3 years, 8 months ago (2017-04-21 15:39:22 UTC) #19
danakj
jam@ PTAL? nick seems away
3 years, 8 months ago (2017-04-21 20:11:10 UTC) #23
ncarter (slow)
lgtm
3 years, 8 months ago (2017-04-21 21:02:57 UTC) #24
jam
sorry just saw this, lgtm
3 years, 8 months ago (2017-04-21 22:42:12 UTC) #25
danakj
Cool thanks!
3 years, 8 months ago (2017-04-21 23:31:53 UTC) #28
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/2832043002/40001
3 years, 8 months ago (2017-04-21 23:33:04 UTC) #29
commit-bot: I haz the power
3 years, 8 months ago (2017-04-22 00:24:36 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8230eff799f34889d9ec93944a4e...

Powered by Google App Engine
This is Rietveld 408576698