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 2459823003: blimp: Use SwapPromises for readback API. (Closed)

Created:
4 years, 1 month ago by Khushal
Modified:
4 years, 1 month ago
CC:
anandc+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, chromium-reviews, dtrainor+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

blimp: Use SwapPromises for readback API. The tests try to grab a snapshot of the compositor output right after receiving an update from the engine, and so want to make sure that the CompositorFrame on which the request is made is from the source frame that came from the engine. This is done by reading the commit messages before giving them to the compositor, and keeping a track of frames drawn for commits made to ensure that a request is made after the drawn frame reaches the main thread. The tracking logic is messy, and requires unnecessary commit tracking, which especially gets confusing with the mode that uses a threaded compositor on the client, since each commit/draw no longer maps to an update from the engine. This patch replaces that logic with SwapPromises, which is the API meant to be used for tracking the progress of a frame through the cc pipeline. The existing logic is still retained for the old code path, since using SwapPromises requires local commits, which can't be done in that mode. BUG=648442 Committed: https://crrev.com/2be75f5c7053765d71b23424d94501194c9e6f81 Cr-Commit-Position: refs/heads/master@{#429230}

Patch Set 1 #

Total comments: 6

Patch Set 2 : comment updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -65 lines) Patch
M blimp/client/core/compositor/blimp_compositor.h View 1 6 chunks +24 lines, -14 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor.cc View 10 chunks +114 lines, -24 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_view_impl.cc View 2 chunks +13 lines, -17 lines 0 comments Download
M blimp/client/core/render_widget/blimp_document_manager.h View 1 chunk +3 lines, -4 lines 0 comments Download
M blimp/client/core/render_widget/blimp_document_manager.cc View 2 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Khushal
4 years, 1 month ago (2016-10-28 07:42:49 UTC) #2
Khushal
On 2016/10/28 07:42:49, Khushal wrote: Thanks for taking a look at this! :)
4 years, 1 month ago (2016-10-28 07:48:28 UTC) #3
Khushal
+dtrainor also.
4 years, 1 month ago (2016-10-31 21:51:02 UTC) #5
aelias_OOO_until_Jul13
lgtm modulo nits https://codereview.chromium.org/2459823003/diff/1/blimp/client/core/compositor/blimp_compositor.cc File blimp/client/core/compositor/blimp_compositor.cc (right): https://codereview.chromium.org/2459823003/diff/1/blimp/client/core/compositor/blimp_compositor.cc#newcode231 blimp/client/core/compositor/blimp_compositor.cc:231: if (use_threaded_layer_tree_host_) For my edification, what ...
4 years, 1 month ago (2016-11-02 07:02:10 UTC) #10
Khushal
Thanks a lot Alex. https://codereview.chromium.org/2459823003/diff/1/blimp/client/core/compositor/blimp_compositor.cc File blimp/client/core/compositor/blimp_compositor.cc (right): https://codereview.chromium.org/2459823003/diff/1/blimp/client/core/compositor/blimp_compositor.cc#newcode231 blimp/client/core/compositor/blimp_compositor.cc:231: if (use_threaded_layer_tree_host_) On 2016/11/02 07:02:10, ...
4 years, 1 month ago (2016-11-02 07:24:21 UTC) #11
Khushal
https://codereview.chromium.org/2459823003/diff/1/blimp/client/core/compositor/blimp_compositor.h File blimp/client/core/compositor/blimp_compositor.h (right): https://codereview.chromium.org/2459823003/diff/1/blimp/client/core/compositor/blimp_compositor.h#newcode240 blimp/client/core/compositor/blimp_compositor.h:240: // When NotifyWhenDonePendingCommitsis called |outstanding_commits_| is copied On 2016/11/02 ...
4 years, 1 month ago (2016-11-02 07:31:32 UTC) #12
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/2459823003/20001
4 years, 1 month ago (2016-11-02 07:32:51 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-02 07:45:35 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 07:47:25 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2be75f5c7053765d71b23424d94501194c9e6f81
Cr-Commit-Position: refs/heads/master@{#429230}

Powered by Google App Engine
This is Rietveld 408576698