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

Issue 2323423002: cc: Add SwapPromiseManager and SurfaceSequenceGenerator. (Closed)

Created:
4 years, 3 months ago by Khushal
Modified:
4 years, 3 months ago
Reviewers:
nyquist, vmpstr, piman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, Ian Vollick, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Add SwapPromiseManager and SurfaceSequenceGenerator. Move SwapPromise tracking to SwapPromiseManager and SurfaceSequnce creation to SurfaceSequenceGenerator. BUG=625283 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/8297ae9916ffbacac9a30107eb54e0950e9bdb3f Cr-Commit-Position: refs/heads/master@{#418666}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Done #

Patch Set 3 : android #

Patch Set 4 : blimp #

Patch Set 5 : rebase #

Total comments: 8

Patch Set 6 : addressed piman's comments #

Patch Set 7 : update comment #

Patch Set 8 : keep LTH in Layer. #

Total comments: 5

Patch Set 9 : tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -166 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/surface_layer.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -2 lines 0 comments Download
M cc/layers/surface_layer_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/ui_resource_layer.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/latency_info_swap_promise_monitor.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/latency_info_swap_promise_monitor.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 8 7 chunks +7 lines, -18 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 12 chunks +26 lines, -67 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_interface.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 7 chunks +17 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_serialization.cc View 2 chunks +0 lines, -9 lines 0 comments Download
M cc/trees/proxy_main.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M cc/trees/scoped_abort_remaining_swap_promises.h View 1 chunk +6 lines, -5 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
A cc/trees/surface_sequence_generator.h View 1 1 chunk +37 lines, -0 lines 0 comments Download
A cc/trees/surface_sequence_generator.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download
A cc/trees/surface_sequence_generator_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
A cc/trees/swap_promise_manager.h View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A cc/trees/swap_promise_manager.cc View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A cc/trees/swap_promise_manager_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +72 lines, -0 lines 0 comments Download
M cc/trees/swap_promise_monitor.h View 2 chunks +7 lines, -7 lines 0 comments Download
M cc/trees/swap_promise_monitor.cc View 1 chunk +9 lines, -9 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (26 generated)
Khushal
Felt cleaner to compose all these elements into the LayerTreeHost rather than stashing everything into ...
4 years, 3 months ago (2016-09-09 19:46:51 UTC) #3
vmpstr
https://codereview.chromium.org/2323423002/diff/1/cc/trees/swap_promise_manager.cc File cc/trees/swap_promise_manager.cc (right): https://codereview.chromium.org/2323423002/diff/1/cc/trees/swap_promise_manager.cc#newcode46 cc/trees/swap_promise_manager.cc:46: return std::move(swap_promise_list_); This leaves swap_promise_list_ in an unspecified state. ...
4 years, 3 months ago (2016-09-09 20:45:45 UTC) #8
Khushal
I moved the SurfaceSequenceGenerator to cc itself. Looks like in general cc does not want ...
4 years, 3 months ago (2016-09-09 21:09:35 UTC) #9
Khushal
+piman for stamping content and ui +nyquist for blimp
4 years, 3 months ago (2016-09-09 23:30:27 UTC) #19
nyquist
blimp lgtm
4 years, 3 months ago (2016-09-12 19:02:43 UTC) #24
piman
https://codereview.chromium.org/2323423002/diff/80001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/2323423002/diff/80001/content/renderer/gpu/render_widget_compositor.cc#newcode638 content/renderer/gpu/render_widget_compositor.cc:638: layer_tree_host_->GetSwapPromiseManager()->QueueSwapPromise( I have a mild preference to keeping a ...
4 years, 3 months ago (2016-09-12 20:35:44 UTC) #25
vmpstr
cc lgtm % piman https://codereview.chromium.org/2323423002/diff/80001/cc/trees/swap_promise_manager.cc File cc/trees/swap_promise_manager.cc (right): https://codereview.chromium.org/2323423002/diff/80001/cc/trees/swap_promise_manager.cc#newcode35 cc/trees/swap_promise_manager.cc:35: for (; it != swap_promise_monitor_.end(); ...
4 years, 3 months ago (2016-09-12 20:44:31 UTC) #26
Khushal
https://codereview.chromium.org/2323423002/diff/80001/cc/trees/swap_promise_manager.cc File cc/trees/swap_promise_manager.cc (right): https://codereview.chromium.org/2323423002/diff/80001/cc/trees/swap_promise_manager.cc#newcode35 cc/trees/swap_promise_manager.cc:35: for (; it != swap_promise_monitor_.end(); it++) On 2016/09/12 20:44:31, ...
4 years, 3 months ago (2016-09-12 22:53:03 UTC) #27
piman
lgtm
4 years, 3 months ago (2016-09-13 00:19:35 UTC) #32
Khushal
https://codereview.chromium.org/2323423002/diff/140001/cc/layers/layer.h File cc/layers/layer.h (left): https://codereview.chromium.org/2323423002/diff/140001/cc/layers/layer.h#oldcode395 cc/layers/layer.h:395: // http://crbug.com/628683 When I actually got around to having ...
4 years, 3 months ago (2016-09-13 17:31:11 UTC) #33
vmpstr
https://codereview.chromium.org/2323423002/diff/140001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/2323423002/diff/140001/cc/trees/layer_tree_host.h#newcode352 cc/trees/layer_tree_host.h:352: std::unique_ptr<SwapPromiseManager> swap_promise_manager_; If this is tied to the lifetime ...
4 years, 3 months ago (2016-09-13 18:39:44 UTC) #34
Khushal
https://codereview.chromium.org/2323423002/diff/140001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/2323423002/diff/140001/cc/trees/layer_tree_host.h#newcode352 cc/trees/layer_tree_host.h:352: std::unique_ptr<SwapPromiseManager> swap_promise_manager_; On 2016/09/13 18:39:44, vmpstr wrote: > If ...
4 years, 3 months ago (2016-09-14 19:29:12 UTC) #35
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/2323423002/160001
4 years, 3 months ago (2016-09-14 19:29:56 UTC) #38
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-14 20:51:48 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 20:54:00 UTC) #41
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8297ae9916ffbacac9a30107eb54e0950e9bdb3f
Cr-Commit-Position: refs/heads/master@{#418666}

Powered by Google App Engine
This is Rietveld 408576698