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

Issue 2654693003: Decouple GpuCompositorFrameSink from DisplayCompositor (Closed)

Created:
3 years, 11 months ago by xing.xu
Modified:
3 years, 10 months ago
CC:
chromium-reviews, rjkroege, cc-bugs_chromium.org, kylechar
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Decouple GpuCompositorFrameSink from DisplayCompositor In order to reuse GpuCompositorFrameSink in other parts of Chrome (e.g. OffscreenCanvas), this CL decouples GpuCompositorFrameSinkSupport from DisplayCompositor. This CL also moves GpuCompositorFrameSInk out of services/ui/surfaces for now as well because we would like to use this code in Chrome and this is currently an incomplete internal implementation detail of Mus. Once code is unified between Chrome and Mus, components/display_compositor can probably move to services/ui/gpu/display_compositor. BUG=683735 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2654693003 Cr-Original-Commit-Position: refs/heads/master@{#446223} Committed: https://chromium.googlesource.com/chromium/src/+/81183e45cf14c416dfce69b990a0c71a4e1c3399 Review-Url: https://codereview.chromium.org/2654693003 Cr-Commit-Position: refs/heads/master@{#446540} Committed: https://chromium.googlesource.com/chromium/src/+/c6c67d47aec05f4dc57da4ac6bd92f617ecac9e1

Patch Set 1 #

Patch Set 2 : Fix vars #

Total comments: 3

Patch Set 3 : Move Gpu*CompositorFrameSink into components #

Patch Set 4 : Fix deps check #

Total comments: 1

Patch Set 5 : Fix msvs c4275 warning with NON_EXPORTED_BASE #

Total comments: 9

Patch Set 6 : Fix msvs c4275 warning in gpu_display_compositor_frame_sink #

Patch Set 7 : Refactor code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -506 lines) Patch
M cc/surfaces/surface_manager.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M cc/surfaces/surface_manager.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M cc/surfaces/surface_reference_manager.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M components/display_compositor/BUILD.gn View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M components/display_compositor/DEPS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A + components/display_compositor/gpu_compositor_frame_sink.h View 1 2 3 4 4 chunks +15 lines, -13 lines 0 comments Download
A + components/display_compositor/gpu_compositor_frame_sink.cc View 1 2 3 4 5 6 6 chunks +19 lines, -16 lines 0 comments Download
A components/display_compositor/gpu_compositor_frame_sink_delegate.h View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A + components/display_compositor/gpu_display_compositor_frame_sink.h View 1 2 3 4 5 2 chunks +12 lines, -9 lines 0 comments Download
A + components/display_compositor/gpu_display_compositor_frame_sink.cc View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
A components/display_compositor/gpu_offscreen_compositor_frame_sink.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A + components/display_compositor/gpu_offscreen_compositor_frame_sink.cc View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M services/ui/surfaces/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M services/ui/surfaces/display_compositor.h View 1 2 4 chunks +18 lines, -25 lines 0 comments Download
M services/ui/surfaces/display_compositor.cc View 1 2 5 chunks +9 lines, -30 lines 0 comments Download
M services/ui/surfaces/gpu_compositor_frame_sink.h View 1 2 1 chunk +0 lines, -88 lines 0 comments Download
M services/ui/surfaces/gpu_compositor_frame_sink.cc View 1 2 1 chunk +0 lines, -150 lines 0 comments Download
M services/ui/surfaces/gpu_display_compositor_frame_sink.h View 1 2 1 chunk +0 lines, -43 lines 0 comments Download
M services/ui/surfaces/gpu_display_compositor_frame_sink.cc View 1 2 1 chunk +0 lines, -55 lines 0 comments Download
M services/ui/surfaces/gpu_offscreen_compositor_frame_sink.h View 1 2 1 chunk +0 lines, -31 lines 0 comments Download
M services/ui/surfaces/gpu_offscreen_compositor_frame_sink.cc View 1 2 1 chunk +0 lines, -30 lines 0 comments Download

Messages

Total messages: 64 (42 generated)
xing.xu
PTAL. BTW, does it better put services/ui/surfaces/gpu_compositor_frame_sink_delegate.h into cc/surfaces/compositor_frame_sink_delegate.h?
3 years, 11 months ago (2017-01-24 08:50:12 UTC) #8
Fady Samuel
This is helpful! Thank you! https://codereview.chromium.org/2654693003/diff/20001/cc/surfaces/compositor_frame_sink_delegate.h File cc/surfaces/compositor_frame_sink_delegate.h (right): https://codereview.chromium.org/2654693003/diff/20001/cc/surfaces/compositor_frame_sink_delegate.h#newcode12 cc/surfaces/compositor_frame_sink_delegate.h:12: class CompositorFrameSinkDelegate { Call ...
3 years, 10 months ago (2017-01-24 13:09:43 UTC) #11
xing.xu
Done. PTAL. BTW, there is a c4275-warning in windows dbg build. Should I ignore it? ...
3 years, 10 months ago (2017-01-25 13:41:13 UTC) #21
Fady Samuel
lgtm + comment. Also could you please add more to the description: In order to ...
3 years, 10 months ago (2017-01-25 13:51:23 UTC) #22
Fady Samuel
On 2017/01/25 13:51:23, Fady Samuel wrote: > lgtm + comment. Also could you please add ...
3 years, 10 months ago (2017-01-25 13:51:51 UTC) #23
Fady Samuel
On 2017/01/25 13:51:23, Fady Samuel wrote: > lgtm + comment. Also could you please add ...
3 years, 10 months ago (2017-01-25 13:54:22 UTC) #24
xing.xu
Description updated, thanks a lot! On 2017/01/25 13:54:22, Fady Samuel wrote: > On 2017/01/25 13:51:23, ...
3 years, 10 months ago (2017-01-25 14:30:49 UTC) #27
kylechar
https://codereview.chromium.org/2654693003/diff/80001/cc/surfaces/surface_manager.cc File cc/surfaces/surface_manager.cc (right): https://codereview.chromium.org/2654693003/diff/80001/cc/surfaces/surface_manager.cc#newcode231 cc/surfaces/surface_manager.cc:231: for (const auto& reference : references) { Get rid ...
3 years, 10 months ago (2017-01-25 15:54:33 UTC) #32
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/2654693003/120001
3 years, 10 months ago (2017-01-25 16:24:51 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/349983)
3 years, 10 months ago (2017-01-25 16:29:58 UTC) #40
jam
Which files do you want me to review?
3 years, 10 months ago (2017-01-25 18:37:50 UTC) #41
xing.xu
On 2017/01/25 18:37:50, jam wrote: > Which files do you want me to review? File ...
3 years, 10 months ago (2017-01-25 22:48:16 UTC) #42
jam
lgtm
3 years, 10 months ago (2017-01-25 23:56:58 UTC) #45
Fady Samuel
+danakj@ for components/display_compositor.
3 years, 10 months ago (2017-01-25 23:57:50 UTC) #47
xing.xu
https://codereview.chromium.org/2654693003/diff/80001/components/display_compositor/gpu_compositor_frame_sink.cc File components/display_compositor/gpu_compositor_frame_sink.cc (right): https://codereview.chromium.org/2654693003/diff/80001/components/display_compositor/gpu_compositor_frame_sink.cc#newcode61 components/display_compositor/gpu_compositor_frame_sink.cc:61: surface_tracker_.UpdateReferences(local_frame_id, On 2017/01/25 15:54:33, kylechar wrote: > Can you ...
3 years, 10 months ago (2017-01-26 00:25:44 UTC) #48
Fady Samuel
https://codereview.chromium.org/2654693003/diff/80001/components/display_compositor/gpu_compositor_frame_sink.h File components/display_compositor/gpu_compositor_frame_sink.h (right): https://codereview.chromium.org/2654693003/diff/80001/components/display_compositor/gpu_compositor_frame_sink.h#newcode30 components/display_compositor/gpu_compositor_frame_sink.h:30: : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), On 2017/01/26 00:25:44, xing.xu wrote: > ...
3 years, 10 months ago (2017-01-26 00:26:53 UTC) #49
xing.xu
On 2017/01/26 00:26:53, Fady Samuel wrote: > https://codereview.chromium.org/2654693003/diff/80001/components/display_compositor/gpu_compositor_frame_sink.h > File components/display_compositor/gpu_compositor_frame_sink.h (right): If not apply ...
3 years, 10 months ago (2017-01-26 00:57:30 UTC) #50
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/2654693003/120001
3 years, 10 months ago (2017-01-26 02:40:12 UTC) #54
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/81183e45cf14c416dfce69b990a0c71a4e1c3399
3 years, 10 months ago (2017-01-26 04:17:06 UTC) #57
Dan Beam
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2651213004/ by dbeam@chromium.org. ...
3 years, 10 months ago (2017-01-26 05:28:18 UTC) #58
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/2654693003/120001
3 years, 10 months ago (2017-01-27 00:01:10 UTC) #61
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 02:21:55 UTC) #64
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/c6c67d47aec05f4dc57da4ac6bd9...

Powered by Google App Engine
This is Rietveld 408576698