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

Issue 2580493002: Splitting DidSwap in cc::SwapPromise into WillSwap and DidSwap (Closed)

Created:
4 years ago by Saman Sami
Modified:
4 years ago
CC:
chromium-reviews, nasko+codewatch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, jam, gcasto+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, lethalantidote+watch-blimp_chromium.org, einbinder+watch-test-runner_chromium.org, scf+watch-blimp_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, piman+watch_chromium.org, khushalsagar+watch-blimp_chromium.org, mlamouri+watch-test-runner_chromium.org, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, cc-bugs_chromium.org, dtrainor+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Splitting DidSwap in cc::SwapPromise into WillSwap and DidSwap Currently DidSwap runs before the swap, but we need a method that runs after it. DidSwap is also not the best name because it implies it'll run after the swap, so we believe the best course of action is to rename DidSwap to WillSwap and create a separate DidSwap method that is run after the swap. BUG=659598 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/e7345c8c5ec3831fb46788c903ea62b67a7a4174 Cr-Commit-Position: refs/heads/master@{#438993}

Patch Set 1 : x #

Patch Set 2 : c #

Patch Set 3 : x #

Total comments: 4

Patch Set 4 : remove blank line #

Total comments: 8

Patch Set 5 : x #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -29 lines) Patch
M blimp/client/core/compositor/blimp_compositor.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M cc/layers/surface_layer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/latency_info_swap_promise.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/latency_info_swap_promise.cc View 1 chunk +3 lines, -1 line 0 comments Download
M cc/output/swap_promise.h View 3 chunks +9 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +9 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M cc/trees/swap_promise_manager_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/gpu/queue_message_swap_promise.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/gpu/queue_message_swap_promise.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/gpu/queue_message_swap_promise_unittest.cc View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/test/layouttest_support.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 46 (36 generated)
Fady Samuel
overall looks good, but a couple of things. https://codereview.chromium.org/2580493002/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2580493002/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode1669 cc/trees/layer_tree_host_impl.cc:1669: active_tree()->ClearSwapPromises(); ...
4 years ago (2016-12-15 21:08:41 UTC) #20
Saman Sami
https://codereview.chromium.org/2580493002/diff/80001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2580493002/diff/80001/cc/trees/layer_tree_host_impl.cc#newcode1669 cc/trees/layer_tree_host_impl.cc:1669: active_tree()->ClearSwapPromises(); On 2016/12/15 21:08:40, Fady Samuel wrote: > Is ...
4 years ago (2016-12-15 21:20:55 UTC) #25
David Trainor- moved to gerrit
blimp/ lgtm
4 years ago (2016-12-15 21:29:37 UTC) #28
vmpstr
Overall looks fine, but all of the DidSwap calls are empty (unless I missed one). ...
4 years ago (2016-12-15 21:54:32 UTC) #30
Saman Sami
PTAL Yes, most of DidSwaps are empty right now, but that's gonna change in future ...
4 years ago (2016-12-15 22:11:59 UTC) #33
vmpstr
cc lgtm
4 years ago (2016-12-15 22:17:20 UTC) #34
jam
lgtm
4 years ago (2016-12-16 01:03:36 UTC) #37
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/2580493002/120001
4 years ago (2016-12-16 01:05:03 UTC) #40
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years ago (2016-12-16 02:51:46 UTC) #43
commit-bot: I haz the power
4 years ago (2016-12-16 02:54:23 UTC) #45
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e7345c8c5ec3831fb46788c903ea62b67a7a4174
Cr-Commit-Position: refs/heads/master@{#438993}

Powered by Google App Engine
This is Rietveld 408576698