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

Issue 2835763002: Use swap-promise to improve first* paint times (Closed)

Created:
3 years, 8 months ago by panicker
Modified:
3 years, 7 months ago
Reviewers:
kinuko, sunnyps, enne (OOO)
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-paint_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, dshwang, jam, mlamouri+watch-content_chromium.org, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use swap-promise to track first* paint up until swap time. BUG=657826, 657825 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2835763002 Cr-Commit-Position: refs/heads/master@{#469594} Committed: https://chromium.googlesource.com/chromium/src/+/34797fd73ea2d3b09f27c84d50eee3c0dfdbc4da

Patch Set 1 #

Patch Set 2 : lint #

Patch Set 3 : remove printfs #

Total comments: 6

Patch Set 4 : address review comments #

Total comments: 8

Patch Set 5 : address nits #

Patch Set 6 : rebase to head #

Patch Set 7 : restore dep on base/callback_forward.h #

Patch Set 8 : GetFrame() can be null in tests #

Patch Set 9 : WrapWeakPersistent -> WrapCrossThreadWeakPersistent: as the callback lives on impl thread and destr… #

Total comments: 2

Patch Set 10 : address nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -0 lines) Patch
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 2 chunks +56 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintTiming.h View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintTiming.cpp View 1 2 3 4 5 6 7 8 4 chunks +40 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebLayerTreeView.h View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 68 (45 generated)
panicker
Sunny, could you provide initial feedback on this approach? Thanks!
3 years, 8 months ago (2017-04-21 22:39:16 UTC) #4
sunnyps
On 2017/04/21 22:39:16, panicker wrote: > Sunny, could you provide initial feedback on this approach? ...
3 years, 8 months ago (2017-04-22 00:48:18 UTC) #5
panicker
Enne - could you please review this CL? Do you think the swap-promise should be ...
3 years, 7 months ago (2017-05-01 17:04:19 UTC) #7
enne (OOO)
Overall approach seems fine to me! The patch description says "improve" but the patch looks ...
3 years, 7 months ago (2017-05-01 21:58:11 UTC) #8
panicker
PTAL https://codereview.chromium.org/2835763002/diff/40001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/2835763002/diff/40001/content/renderer/gpu/render_widget_compositor.cc#newcode1161 content/renderer/gpu/render_widget_compositor.cc:1161: QueueSwapPromise(base::MakeUnique<cc::ReportTimeSwapPromise>( On 2017/05/01 21:58:11, enne wrote: > Agreed ...
3 years, 7 months ago (2017-05-02 00:57:04 UTC) #10
panicker
Kinuko - could you please review for public/platform ?
3 years, 7 months ago (2017-05-02 00:58:09 UTC) #12
enne (OOO)
lgtm
3 years, 7 months ago (2017-05-02 01:00:04 UTC) #13
sunnyps
lgtm % nits https://codereview.chromium.org/2835763002/diff/60001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/2835763002/diff/60001/content/renderer/gpu/render_widget_compositor.cc#newcode191 content/renderer/gpu/render_widget_compositor.cc:191: static_cast<double>(base::Time::kMicrosecondsPerSecond); nit: can you put the ...
3 years, 7 months ago (2017-05-02 01:20:46 UTC) #15
kinuko
lgtm
3 years, 7 months ago (2017-05-02 03:57:31 UTC) #16
panicker
https://codereview.chromium.org/2835763002/diff/60001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/2835763002/diff/60001/content/renderer/gpu/render_widget_compositor.cc#newcode191 content/renderer/gpu/render_widget_compositor.cc:191: static_cast<double>(base::Time::kMicrosecondsPerSecond); On 2017/05/02 01:20:46, sunnyps wrote: > nit: can ...
3 years, 7 months ago (2017-05-02 21:21:36 UTC) #17
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/2835763002/80001
3 years, 7 months ago (2017-05-02 22:22:15 UTC) #25
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/2835763002/100001
3 years, 7 months ago (2017-05-03 20:35:55 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/170113)
3 years, 7 months ago (2017-05-03 21:25:02 UTC) #30
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/2835763002/100001
3 years, 7 months ago (2017-05-03 22:41:08 UTC) #36
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/2835763002/120001
3 years, 7 months ago (2017-05-03 23:19:42 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_trusty_blink_rel on master.tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_trusty_blink_rel/builds/8895)
3 years, 7 months ago (2017-05-04 00:11:44 UTC) #42
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/2835763002/140001
3 years, 7 months ago (2017-05-04 17:26:37 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/285802)
3 years, 7 months ago (2017-05-04 19:34:15 UTC) #51
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/2835763002/160001
3 years, 7 months ago (2017-05-05 00:11:41 UTC) #58
sunnyps
lgtm % small nit https://codereview.chromium.org/2835763002/diff/160001/content/renderer/gpu/render_widget_compositor.h File content/renderer/gpu/render_widget_compositor.h (right): https://codereview.chromium.org/2835763002/diff/160001/content/renderer/gpu/render_widget_compositor.h#newcode225 content/renderer/gpu/render_widget_compositor.h:225: class ReportTimeSwapPromise : public cc::SwapPromise ...
3 years, 7 months ago (2017-05-05 00:12:14 UTC) #59
panicker
https://codereview.chromium.org/2835763002/diff/160001/content/renderer/gpu/render_widget_compositor.h File content/renderer/gpu/render_widget_compositor.h (right): https://codereview.chromium.org/2835763002/diff/160001/content/renderer/gpu/render_widget_compositor.h#newcode225 content/renderer/gpu/render_widget_compositor.h:225: class ReportTimeSwapPromise : public cc::SwapPromise { On 2017/05/05 00:12:14, ...
3 years, 7 months ago (2017-05-05 00:21:14 UTC) #61
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/2835763002/180001
3 years, 7 months ago (2017-05-05 00:22:13 UTC) #64
commit-bot: I haz the power
3 years, 7 months ago (2017-05-05 04:11:13 UTC) #68
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/34797fd73ea2d3b09f27c84d50ee...

Powered by Google App Engine
This is Rietveld 408576698