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

Issue 2868473002: Implement aura::Window::CreateCompositorFrameSink() (Closed)

Created:
3 years, 7 months ago by Peng
Modified:
3 years, 7 months ago
Reviewers:
Fady Samuel, reveman, sky, piman
CC:
cc-bugs_chromium.org, chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement aura::Window::CreateCompositorFrameSink() Currently, the exo creates cc::CompositorFrameSinkSupport by itself. To create cc::CompositorFrameSinkSupport, exo has to access ContextFactoryPrivate for allocating a FrameSinkId and accessing cc::SurfaceManager, etc. But all those objects are not available in Mus clients, so the exo doesn't work in Mushrome and Mustash To support mushrome and mustash, this CL adds aura::Window::CreateCompositorFrameSink(), this function hides the detail of CompositorFrameSink creation within Cash and Mus. Note: this CL only implements aura::Window::CreateCompositorFrameSink() for Cash. A follow up CL will implements it for Mus. BUG=718443 TEST=tested exo with weston-terminal, wayland_rects_client CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2868473002 Cr-Commit-Position: refs/heads/master@{#470450} Committed: https://chromium.googlesource.com/chromium/src/+/4c5a2a2c64c2b54355139eb9970fb1992e8363bd

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Patch Set 5 : WIP #

Patch Set 6 : WIP #

Patch Set 7 : WIP #

Patch Set 8 : WIP #

Patch Set 9 : Rebase #

Total comments: 13

Patch Set 10 : Address review issues #

Total comments: 7

Patch Set 11 : Address review issues #

Total comments: 19

Patch Set 12 : Address review issues #

Total comments: 2

Patch Set 13 : Address review issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -429 lines) Patch
M components/exo/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M components/exo/buffer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -5 lines 0 comments Download
M components/exo/buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -6 lines 0 comments Download
M components/exo/buffer_unittest.cc View 1 2 3 4 5 6 4 chunks +9 lines, -16 lines 0 comments Download
D components/exo/compositor_frame_sink.h View 1 1 chunk +0 lines, -52 lines 0 comments Download
D components/exo/compositor_frame_sink.cc View 1 1 chunk +0 lines, -71 lines 0 comments Download
D components/exo/compositor_frame_sink_holder.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +29 lines, -30 lines 0 comments Download
D components/exo/compositor_frame_sink_holder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +21 lines, -34 lines 0 comments Download
M components/exo/surface.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +1 line, -20 lines 0 comments Download
M components/exo/surface.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +9 lines, -42 lines 0 comments Download
M ui/aura/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M ui/aura/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -3 lines 0 comments Download
M ui/aura/env.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A ui/aura/local/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
A ui/aura/local/compositor_frame_sink_local.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +75 lines, -0 lines 0 comments Download
A ui/aura/local/compositor_frame_sink_local.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +122 lines, -0 lines 0 comments Download
A + ui/aura/local/window_port_local.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +21 lines, -4 lines 0 comments Download
A + ui/aura/local/window_port_local.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +49 lines, -2 lines 0 comments Download
M ui/aura/mus/window_port_mus.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_helper.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M ui/aura/window.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +12 lines, -1 line 0 comments Download
M ui/aura/window_port.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +16 lines, -0 lines 0 comments Download
M ui/aura/window_port_local.h View 1 1 chunk +0 lines, -45 lines 0 comments Download
M ui/aura/window_port_local.cc View 1 1 chunk +0 lines, -92 lines 0 comments Download

Messages

Total messages: 59 (36 generated)
Peng
Hi Fady, PTAL. Thanks.
3 years, 7 months ago (2017-05-08 15:44:16 UTC) #17
Fady Samuel
I like this. This seems to be moving in a generally good direction. Thanks! I ...
3 years, 7 months ago (2017-05-08 15:52:09 UTC) #18
Peng
https://codereview.chromium.org/2868473002/diff/160001/cc/output/compositor_frame_sink.h File cc/output/compositor_frame_sink.h (right): https://codereview.chromium.org/2868473002/diff/160001/cc/output/compositor_frame_sink.h#newcode127 cc/output/compositor_frame_sink.h:127: virtual void EvictFrame() {} On 2017/05/08 15:52:09, Fady Samuel ...
3 years, 7 months ago (2017-05-08 17:44:39 UTC) #19
Fady Samuel
LGTM + nits https://codereview.chromium.org/2868473002/diff/160001/cc/output/compositor_frame_sink.h File cc/output/compositor_frame_sink.h (right): https://codereview.chromium.org/2868473002/diff/160001/cc/output/compositor_frame_sink.h#newcode127 cc/output/compositor_frame_sink.h:127: virtual void EvictFrame() {} On 2017/05/08 ...
3 years, 7 months ago (2017-05-08 18:17:35 UTC) #20
Peng
reveman@chromium.org: Please review changes in //components/exo sky@chromium.org: Please review changes in //ui/aura Hi David & ...
3 years, 7 months ago (2017-05-08 18:21:01 UTC) #22
reveman
components/exo lgtm any chance you could update ash/laser/laser_pointer_view.* as well? That code is very similar ...
3 years, 7 months ago (2017-05-08 19:25:17 UTC) #23
Peng
https://codereview.chromium.org/2868473002/diff/180001/cc/output/compositor_frame_sink.h File cc/output/compositor_frame_sink.h (right): https://codereview.chromium.org/2868473002/diff/180001/cc/output/compositor_frame_sink.h#newcode127 cc/output/compositor_frame_sink.h:127: virtual void EvictFrame() {} On 2017/05/08 18:17:35, Fady Samuel ...
3 years, 7 months ago (2017-05-08 20:14:01 UTC) #24
Peng
On 2017/05/08 19:25:17, reveman wrote: > components/exo lgtm > > any chance you could update ...
3 years, 7 months ago (2017-05-08 20:15:09 UTC) #25
Peng
piman@chromium.org: Please review changes in //content/renderer/gpu Hi Antoine, PTAL. Thanks.
3 years, 7 months ago (2017-05-08 20:19:51 UTC) #29
piman
https://codereview.chromium.org/2868473002/diff/200001/cc/output/compositor_frame_sink.h File cc/output/compositor_frame_sink.h (right): https://codereview.chromium.org/2868473002/diff/200001/cc/output/compositor_frame_sink.h#newcode127 cc/output/compositor_frame_sink.h:127: virtual void EvictFrame() {} What calls this?
3 years, 7 months ago (2017-05-08 20:30:15 UTC) #30
Peng
https://codereview.chromium.org/2868473002/diff/200001/cc/output/compositor_frame_sink.h File cc/output/compositor_frame_sink.h (right): https://codereview.chromium.org/2868473002/diff/200001/cc/output/compositor_frame_sink.h#newcode127 cc/output/compositor_frame_sink.h:127: virtual void EvictFrame() {} On 2017/05/08 20:30:15, piman wrote: ...
3 years, 7 months ago (2017-05-08 20:41:50 UTC) #31
sky
https://codereview.chromium.org/2868473002/diff/200001/ui/aura/DEPS File ui/aura/DEPS (right): https://codereview.chromium.org/2868473002/diff/200001/ui/aura/DEPS#newcode2 ui/aura/DEPS:2: "+cc/output/compositor_frame_sink.h", Is there a reason to only include certain ...
3 years, 7 months ago (2017-05-08 22:36:43 UTC) #34
piman
https://codereview.chromium.org/2868473002/diff/200001/cc/output/compositor_frame_sink.h File cc/output/compositor_frame_sink.h (right): https://codereview.chromium.org/2868473002/diff/200001/cc/output/compositor_frame_sink.h#newcode127 cc/output/compositor_frame_sink.h:127: virtual void EvictFrame() {} On 2017/05/08 20:41:49, Peng wrote: ...
3 years, 7 months ago (2017-05-08 23:18:03 UTC) #35
Fady Samuel
On 2017/05/08 23:18:03, piman wrote: > https://codereview.chromium.org/2868473002/diff/200001/cc/output/compositor_frame_sink.h > File cc/output/compositor_frame_sink.h (right): > > https://codereview.chromium.org/2868473002/diff/200001/cc/output/compositor_frame_sink.h#newcode127 > ...
3 years, 7 months ago (2017-05-08 23:42:32 UTC) #36
piman
On Mon, May 8, 2017 at 4:42 PM, <fsamuel@chromium.org> wrote: > On 2017/05/08 23:18:03, piman ...
3 years, 7 months ago (2017-05-08 23:58:21 UTC) #37
Peng
https://codereview.chromium.org/2868473002/diff/200001/cc/output/compositor_frame_sink.h File cc/output/compositor_frame_sink.h (right): https://codereview.chromium.org/2868473002/diff/200001/cc/output/compositor_frame_sink.h#newcode127 cc/output/compositor_frame_sink.h:127: virtual void EvictFrame() {} On 2017/05/08 23:18:03, piman wrote: ...
3 years, 7 months ago (2017-05-09 17:26:57 UTC) #38
reveman
still lgtm, just a nit https://codereview.chromium.org/2868473002/diff/220001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2868473002/diff/220001/components/exo/compositor_frame_sink_holder.cc#newcode32 components/exo/compositor_frame_sink_holder.cc:32: const gpu::SyncToken token; nit: ...
3 years, 7 months ago (2017-05-09 17:35:58 UTC) #41
sky
LGTM https://codereview.chromium.org/2868473002/diff/200001/ui/aura/window.cc File ui/aura/window.cc (right): https://codereview.chromium.org/2868473002/diff/200001/ui/aura/window.cc#newcode781 ui/aura/window.cc:781: if (root_window && root_window != new_root_window) On 2017/05/09 ...
3 years, 7 months ago (2017-05-09 19:34:06 UTC) #44
Peng
https://codereview.chromium.org/2868473002/diff/220001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2868473002/diff/220001/components/exo/compositor_frame_sink_holder.cc#newcode32 components/exo/compositor_frame_sink_holder.cc:32: const gpu::SyncToken token; On 2017/05/09 17:35:58, reveman wrote: > ...
3 years, 7 months ago (2017-05-09 19:48:49 UTC) #45
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/2868473002/240001
3 years, 7 months ago (2017-05-09 21:45:02 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 7 months ago (2017-05-10 02:00:39 UTC) #54
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/2868473002/240001
3 years, 7 months ago (2017-05-10 02:35:53 UTC) #56
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 04:42:13 UTC) #59
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/4c5a2a2c64c2b54355139eb9970f...

Powered by Google App Engine
This is Rietveld 408576698