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

Issue 2482453002: Don't restart the hang renderer timeout on messages ack'd from the compositor thread. (Closed)

Created:
4 years, 1 month ago by dtapuska
Modified:
4 years, 1 month ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, dtapuska+chromiumwatch_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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't restart the hang renderer timeout on messages ack'd from the compositor thread. Only reset the hang monitor timeout based on an ack actually coming from the main thread. This way we can put the dialog up even if the compositor is responsive but the main thread isn't. BUG=654835 Committed: https://crrev.com/120e997fc114e87d1b98a32ac9a81bce954e05d2 Cr-Commit-Position: refs/heads/master@{#430355}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix comments #

Total comments: 2

Patch Set 3 : Add unit test #

Patch Set 4 : Fix mac build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -98 lines) Patch
M content/browser/renderer_host/input/input_router_client.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/input_router_impl_perftest.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/main_thread_event_queue_browsertest.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/mock_input_router_client.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/mock_input_router_client.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 3 chunks +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 4 chunks +8 lines, -4 lines 0 comments Download
M content/common/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/input/input_event_ack.h View 1 2 chunks +11 lines, -4 lines 0 comments Download
M content/common/input/input_event_ack.cc View 1 1 chunk +26 lines, -13 lines 0 comments Download
A content/common/input/input_event_ack_source.h View 1 1 chunk +21 lines, -0 lines 0 comments Download
M content/common/input_messages.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M content/renderer/input/input_event_filter.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection_unittest.cc View 1 14 chunks +47 lines, -49 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 29 (16 generated)
dtapuska
tdresser@chromium.org: Please review changes in */input/* creis@chromium.org: Please review changes in content/*
4 years, 1 month ago (2016-11-04 18:05:40 UTC) #2
dtapuska
dcheng@ please review input_messages.h
4 years, 1 month ago (2016-11-04 18:06:27 UTC) #4
dcheng
ipc lgtm with nits addressed https://codereview.chromium.org/2482453002/diff/1/content/common/input/input_event_ack_location.h File content/common/input/input_event_ack_location.h (right): https://codereview.chromium.org/2482453002/diff/1/content/common/input/input_event_ack_location.h#newcode13 content/common/input/input_event_ack_location.h:13: INPUT_EVENT_ACK_LOCATION_UNKNOWN, Nit: since this ...
4 years, 1 month ago (2016-11-04 18:24:49 UTC) #5
tdresser
I didn't see any tests checking that this is set correctly. LGTM with a test. ...
4 years, 1 month ago (2016-11-04 18:35:54 UTC) #6
dtapuska
https://codereview.chromium.org/2482453002/diff/1/content/common/input/input_event_ack_location.h File content/common/input/input_event_ack_location.h (right): https://codereview.chromium.org/2482453002/diff/1/content/common/input/input_event_ack_location.h#newcode12 content/common/input/input_event_ack_location.h:12: enum class InputEventAckLocation { On 2016/11/04 18:35:54, tdresser wrote: ...
4 years, 1 month ago (2016-11-04 20:14:17 UTC) #8
Charlie Reis
Thanks. RS LGTM for content/, but please note that tdresser@ requested a test. https://codereview.chromium.org/2482453002/diff/20001/content/common/BUILD.gn File ...
4 years, 1 month ago (2016-11-04 21:14:17 UTC) #12
dtapuska
tdresser@ ptal I've added the unit test you requested. https://codereview.chromium.org/2482453002/diff/20001/content/common/BUILD.gn File content/common/BUILD.gn (right): https://codereview.chromium.org/2482453002/diff/20001/content/common/BUILD.gn#newcode163 content/common/BUILD.gn:163: ...
4 years, 1 month ago (2016-11-07 16:41:27 UTC) #13
tdresser
LGTM, thanks.
4 years, 1 month ago (2016-11-07 16:44:24 UTC) #14
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/2482453002/40001
4 years, 1 month ago (2016-11-07 16:47:34 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/330222)
4 years, 1 month ago (2016-11-07 17:34:03 UTC) #19
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/2482453002/60001
4 years, 1 month ago (2016-11-07 20:06:38 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-07 20:14:17 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 20:22:15 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/120e997fc114e87d1b98a32ac9a81bce954e05d2
Cr-Commit-Position: refs/heads/master@{#430355}

Powered by Google App Engine
This is Rietveld 408576698