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

Issue 2537943002: Getting rid of CompositorFrameMetadata::satisfies_sequences (Closed)

Created:
4 years ago by Saman Sami
Modified:
4 years ago
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Getting rid of CompositorFrameMetadata::satisfies_sequences This CL helps unify the way we destroy surface references. We currently have two code paths for satisfying a surface sequence. One is through calling the satisfy callback, and the other one is through populating satisfies_sequences in CompositorFrameMetadata and letting Surface::QueueFrame take care of it. Eventually they both do the same thing: they call SurfaceManager::DidSatisfySequences. This CL gets rid of satisfies_sequences in CompositorFrameMetadata and from now on the only way to satisfy a sequence is through the callback. This is a necessary change because we are phasing out SurfaceSequence and exposing it in CompositorFrameMetadata is not a good idea. BUG=659598 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/d0de6cf72a25d789a507d6eb904a8f1ae314d00b Cr-Commit-Position: refs/heads/master@{#439043}

Patch Set 1 #

Total comments: 1

Patch Set 2 : test #

Patch Set 3 : windows #

Patch Set 4 : remove satisfies_sequences #

Patch Set 5 : referenced surfaces #

Total comments: 2

Patch Set 6 : test #

Total comments: 3

Patch Set 7 : x #

Patch Set 8 : x #

Patch Set 9 : nits #

Patch Set 10 : x #

Patch Set 11 : x #

Patch Set 12 : x #

Patch Set 13 : up #

Patch Set 14 : x #

Total comments: 2

Patch Set 15 : x #

Total comments: 1

Patch Set 16 : up #

Patch Set 17 : x #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -78 lines) Patch
M blimp/client/core/compositor/blimp_compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -4 lines 0 comments Download
M cc/ipc/cc_param_traits_macros.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -1 line 0 comments Download
M cc/ipc/compositor_frame_metadata.mojom View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/ipc/compositor_frame_metadata_struct_traits.h View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M cc/ipc/compositor_frame_metadata_struct_traits.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +0 lines, -5 lines 0 comments Download
M cc/layers/surface_layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +20 lines, -9 lines 0 comments Download
M cc/layers/surface_layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +6 lines, -19 lines 0 comments Download
M cc/output/compositor_frame_metadata.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M cc/surfaces/surface.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -16 lines 0 comments Download
M cc/surfaces/surface_factory_unittest.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M cc/surfaces/surface_manager.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download
M cc/surfaces/surface_manager.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -4 lines 0 comments Download
M ui/android/delegated_frame_host_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 120 (98 generated)
Fady Samuel
https://codereview.chromium.org/2537943002/diff/1/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2537943002/diff/1/cc/layers/surface_layer.cc#newcode30 cc/layers/surface_layer.cc:30: satisfy_callback_.Run(sequence_); I think this runs on the compositor thread ...
4 years ago (2016-11-30 15:35:28 UTC) #12
jbauman
On 2016/11/30 15:35:28, Fady Samuel wrote: > https://codereview.chromium.org/2537943002/diff/1/cc/layers/surface_layer.cc > File cc/layers/surface_layer.cc (right): > > https://codereview.chromium.org/2537943002/diff/1/cc/layers/surface_layer.cc#newcode30 ...
4 years ago (2016-11-30 21:23:24 UTC) #13
Saman Sami
@dcheng cc/ipc @danakj everything else in cc/
4 years ago (2016-12-08 17:16:52 UTC) #34
Fady Samuel
https://codereview.chromium.org/2537943002/diff/80001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2537943002/diff/80001/cc/layers/surface_layer.cc#newcode23 cc/layers/surface_layer.cc:23: SurfaceSequence sequence, nit: const SurfaceSequence& sequence
4 years ago (2016-12-08 18:01:33 UTC) #40
dcheng
ipc lgtm https://codereview.chromium.org/2537943002/diff/80001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2537943002/diff/80001/cc/layers/surface_layer.cc#newcode28 cc/layers/surface_layer.cc:28: main_task_runner_(main_task_runner) {} NIt: std::move() this
4 years ago (2016-12-08 19:25:38 UTC) #43
danakj
I'm having a hard time saying if this breaks anything, esp just not calling DidSatisfySequences. ...
4 years ago (2016-12-08 20:57:53 UTC) #46
danakj
It would be nice to explain in the CL description perhaps why this change is ...
4 years ago (2016-12-08 21:39:19 UTC) #47
jbauman
lgtm if you post to the main thread (don't need to post to the same ...
4 years ago (2016-12-08 22:14:49 UTC) #52
danakj
On 2016/12/08 22:14:49, jbauman wrote: > lgtm rs lgtm for ownerythings
4 years ago (2016-12-08 22:20:29 UTC) #53
Fady Samuel
https://codereview.chromium.org/2537943002/diff/100001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (left): https://codereview.chromium.org/2537943002/diff/100001/cc/layers/surface_layer.cc#oldcode30 cc/layers/surface_layer.cc:30: metadata->satisfies_sequences.push_back(sequence_.sequence); DCHECK(main_task_runner_->BelongsToCurrentThread()); would be helpful here to clarify.
4 years ago (2016-12-08 22:21:17 UTC) #54
Fady Samuel
https://codereview.chromium.org/2537943002/diff/280001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2537943002/diff/280001/cc/layers/surface_layer.cc#newcode51 cc/layers/surface_layer.cc:51: base::ThreadTaskRunnerHandle::Get()->PostTask( Not a huge fan of this, but if ...
4 years ago (2016-12-14 05:03:06 UTC) #92
danakj
https://codereview.chromium.org/2537943002/diff/280001/cc/layers/surface_layer.cc File cc/layers/surface_layer.cc (right): https://codereview.chromium.org/2537943002/diff/280001/cc/layers/surface_layer.cc#newcode51 cc/layers/surface_layer.cc:51: base::ThreadTaskRunnerHandle::Get()->PostTask( On 2016/12/14 05:03:06, Fady Samuel wrote: > Not ...
4 years ago (2016-12-14 16:17:21 UTC) #93
Fady Samuel
On 2016/12/14 16:17:21, danakj_OOO_and_slow wrote: > https://codereview.chromium.org/2537943002/diff/280001/cc/layers/surface_layer.cc > File cc/layers/surface_layer.cc (right): > > https://codereview.chromium.org/2537943002/diff/280001/cc/layers/surface_layer.cc#newcode51 > ...
4 years ago (2016-12-14 16:20:42 UTC) #94
Saman Sami
dtrainor@chromium.org: Please review changes in blimp/ and ui/android jam@chromium.org: Please review changes in content/
4 years ago (2016-12-15 22:50:11 UTC) #97
David Trainor- moved to gerrit
blimp/ and ui/android lgtm
4 years ago (2016-12-15 23:06:02 UTC) #98
jam
lgtm with nit https://codereview.chromium.org/2537943002/diff/340001/content/browser/renderer_host/delegated_frame_host.cc File content/browser/renderer_host/delegated_frame_host.cc (right): https://codereview.chromium.org/2537943002/diff/340001/content/browser/renderer_host/delegated_frame_host.cc#newcode55 content/browser/renderer_host/delegated_frame_host.cc:55: DCHECK(manager); nit: remove this, it's not ...
4 years ago (2016-12-16 01:02:17 UTC) #104
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/2537943002/380001
4 years ago (2016-12-16 03:07:37 UTC) #111
commit-bot: I haz the power
Committed patchset #17 (id:380001)
4 years ago (2016-12-16 06:16:44 UTC) #114
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/d0de6cf72a25d789a507d6eb904a8f1ae314d00b Cr-Commit-Position: refs/heads/master@{#439043}
4 years ago (2016-12-16 06:21:13 UTC) #116
Kunihiko Sakamoto
A revert of this CL (patchset #17 id:380001) has been created in https://codereview.chromium.org/2585543003/ by ksakamoto@chromium.org. ...
4 years ago (2016-12-16 06:54:09 UTC) #117
Kunihiko Sakamoto
On 2016/12/16 06:54:09, Kunihiko Sakamoto wrote: > A revert of this CL (patchset #17 id:380001) ...
4 years ago (2016-12-16 08:01:09 UTC) #118
Kunihiko Sakamoto
4 years ago (2016-12-16 08:10:39 UTC) #119
Message was sent while issue was closed.
On 2016/12/16 08:01:09, Kunihiko Sakamoto wrote:
> On 2016/12/16 06:54:09, Kunihiko Sakamoto wrote:
> > A revert of this CL (patchset #17 id:380001) has been created in
> > https://codereview.chromium.org/2585543003/ by
mailto:ksakamoto@chromium.org.
> > 
> > The reason for reverting is: Suspected cause of ChromiumOS compile failure.
> >
>
https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%...
> > .
> 
> The real culprit was https://codereview.chromium.org/2578893003/. Relanding
> this.

Relanded at https://codereview.chromium.org/2583803002/

Powered by Google App Engine
This is Rietveld 408576698