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

Issue 1376003002: Make rendering timeouts work even if paint data received early (Closed)

Created:
5 years, 2 months ago by kenrb
Modified:
5 years, 2 months ago
CC:
esprehn, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@cursor
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make rendering timeouts work even if paint data received early The initial implementation of the browser paint timer for a new page load assumed that the DidCommitProvisionalLoad IPC would be received before any compositor frame generated from rendering the new page. This turns out to be false. This CL adds a new IPC that is queued to be sent when a new compositor frame is generated, and can be handled by the browser even if it arrives too early. In that case, a flag is set that tells RenderWidgetHost to not set the timer. BUG=535375 Committed: https://crrev.com/d79de93d888aa78e3caeab8d5288915cdb4c7f29 Cr-Commit-Position: refs/heads/master@{#352028}

Patch Set 1 #

Patch Set 2 : Issue with base resolved #

Patch Set 3 : Rebase that maybe works this time #

Total comments: 18

Patch Set 4 : Review comments addressed #

Total comments: 8

Patch Set 5 : Changed method names in Blink #

Patch Set 6 : More creis comments addressed #

Patch Set 7 : Moved message dispatch mechanism from Blink to content #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -10 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 2 chunks +17 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 4 chunks +17 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 1 chunk +12 lines, -1 line 2 comments Download
M content/common/view_messages.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 3 comments Download

Messages

Total messages: 29 (3 generated)
kenrb
creis: Can you please review the content parts? dcheng: Can you please review the Blink ...
5 years, 2 months ago (2015-09-30 18:26:47 UTC) #2
Charlie Reis
Great. I'm a bit nervous about interactions between multiple navigations, but if we're guaranteed to ...
5 years, 2 months ago (2015-09-30 20:36:19 UTC) #3
dcheng
+dglazkov and +esprehn as well: it seems kind of unfortunate to have so much overlap ...
5 years, 2 months ago (2015-09-30 21:16:03 UTC) #4
kenrb
Thanks for the review. Responses below. https://chromiumcodereview.appspot.com/1376003002/diff/30001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://chromiumcodereview.appspot.com/1376003002/diff/30001/content/browser/renderer_host/render_widget_host_impl.cc#newcode925 content/browser/renderer_host/render_widget_host_impl.cc:925: // is notified ...
5 years, 2 months ago (2015-09-30 21:25:02 UTC) #5
esprehn
This isn't the right place for a paint related message. On Sep 30, 2015 2:25 ...
5 years, 2 months ago (2015-09-30 21:28:00 UTC) #6
kenrb
https://chromiumcodereview.appspot.com/1376003002/diff/30001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://chromiumcodereview.appspot.com/1376003002/diff/30001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3872 third_party/WebKit/Source/web/WebViewImpl.cpp:3872: m_shouldDispatchFirstPaintAfterLoad = false; On 2015/09/30 21:16:03, dcheng wrote: > ...
5 years, 2 months ago (2015-09-30 21:40:41 UTC) #7
Charlie Reis
Thanks. I'm happy with content/ (with nits below), assuming it doesn't need large changes to ...
5 years, 2 months ago (2015-09-30 21:42:09 UTC) #8
dcheng
Sorry, more dumb questions... why isn't WebFrameClient::didCommitProvisionalLoad sufficient for our purposes here?
5 years, 2 months ago (2015-09-30 21:44:37 UTC) #9
dglazkov
Why not just model it exactly how I plumbed didFirstLayoutAfterFinishedParsing?
5 years, 2 months ago (2015-09-30 21:47:43 UTC) #10
kenrb
On 2015/09/30 21:44:37, dcheng wrote: > Sorry, more dumb questions... why isn't WebFrameClient::didCommitProvisionalLoad > sufficient ...
5 years, 2 months ago (2015-09-30 21:54:38 UTC) #11
kenrb
On 2015/09/30 21:47:43, dglazkov wrote: > Why not just model it exactly how I plumbed ...
5 years, 2 months ago (2015-09-30 21:56:12 UTC) #12
dcheng
On 2015/09/30 at 21:54:38, kenrb wrote: > On 2015/09/30 21:44:37, dcheng wrote: > > Sorry, ...
5 years, 2 months ago (2015-09-30 22:03:45 UTC) #13
kenrb
On 2015/09/30 22:03:45, dcheng wrote: > On 2015/09/30 at 21:54:38, kenrb wrote: > > On ...
5 years, 2 months ago (2015-10-01 12:43:10 UTC) #14
kenrb
https://codereview.chromium.org/1376003002/diff/50001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/1376003002/diff/50001/content/browser/renderer_host/render_widget_host_impl.cc#newcode934 content/browser/renderer_host/render_widget_host_impl.cc:934: if (new_content_rendering_timeout_) On 2015/09/30 21:42:09, Charlie Reis wrote: > ...
5 years, 2 months ago (2015-10-01 12:45:09 UTC) #15
Charlie Reis
content/ LGTM
5 years, 2 months ago (2015-10-01 17:27:03 UTC) #16
dcheng
On 2015/10/01 at 12:43:10, kenrb wrote: > On 2015/09/30 22:03:45, dcheng wrote: > > On ...
5 years, 2 months ago (2015-10-01 17:36:30 UTC) #17
kenrb
On 2015/10/01 17:36:30, dcheng wrote: > I don't think we send didCommitProvisonalLoad() for an in-page ...
5 years, 2 months ago (2015-10-01 17:45:46 UTC) #18
Charlie Reis
On 2015/10/01 17:45:46, kenrb wrote: > On 2015/10/01 17:36:30, dcheng wrote: > > I don't ...
5 years, 2 months ago (2015-10-01 18:06:48 UTC) #19
dcheng
On 2015/10/01 at 17:45:46, kenrb wrote: > On 2015/10/01 17:36:30, dcheng wrote: > > I ...
5 years, 2 months ago (2015-10-01 18:11:33 UTC) #20
Charlie Reis
New approach in RenderFrameImpl LGTM with nit. https://codereview.chromium.org/1376003002/diff/110001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1376003002/diff/110001/content/renderer/render_frame_impl.cc#newcode2739 content/renderer/render_frame_impl.cc:2739: // first ...
5 years, 2 months ago (2015-10-01 21:26:39 UTC) #21
dcheng
lgtm
5 years, 2 months ago (2015-10-01 21:38:45 UTC) #22
esprehn
yay, this is much better :) https://codereview.chromium.org/1376003002/diff/110001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/1376003002/diff/110001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode1112 content/browser/renderer_host/render_widget_host_unittest.cc:1112: TimeDelta::FromMicroseconds(20)); Why wait ...
5 years, 2 months ago (2015-10-02 05:58:16 UTC) #24
kenrb
https://codereview.chromium.org/1376003002/diff/110001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/1376003002/diff/110001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode1112 content/browser/renderer_host/render_widget_host_unittest.cc:1112: TimeDelta::FromMicroseconds(20)); On 2015/10/02 05:58:15, esprehn wrote: > Why wait ...
5 years, 2 months ago (2015-10-02 13:24:40 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376003002/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376003002/110001
5 years, 2 months ago (2015-10-02 14:15:05 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years, 2 months ago (2015-10-02 14:22:49 UTC) #28
commit-bot: I haz the power
5 years, 2 months ago (2015-10-02 14:23:39 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d79de93d888aa78e3caeab8d5288915cdb4c7f29
Cr-Commit-Position: refs/heads/master@{#352028}

Powered by Google App Engine
This is Rietveld 408576698