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

Issue 2579693004: GpuCompositorFrameSink implements cc::mojom::DisplayPrivate (Closed)

Created:
4 years ago by Alex Z.
Modified:
4 years ago
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, cc-bugs_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GpuCompositorFrameSink implements cc::mojom::DisplayPrivate Added DisplayPrivate mojo interface to hide cc::Display from ContextFactory. The intent of this change is to content mus-ws with mus-gpu for cc::Display operations. ColorSpace and OutputIsSecure and so on is passed along from display management code which resides in Mus-ws. cc::Display lives in mus-gpu and so we need a mojo interface for cc::Display. Currently ash talks to cc::Display through ContextFactoryPrivate. This mojo interface would eventually replace ContextFactoryPrivate or would be used by ContextFactoryPrivate. BUG=670364 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel TBR=danakj@chromium.org Committed: https://crrev.com/dc7e15988c2612f4bdd66e29b238a4eb3fce5cee Cr-Commit-Position: refs/heads/master@{#440192}

Patch Set 1 #

Patch Set 2 : Fixed header path in color_space.typemap #

Patch Set 3 : Added //ipc to public_deps in color_space.typemap #

Total comments: 24

Patch Set 4 : Addressed comments #

Total comments: 26

Patch Set 5 : Addressed comments #

Patch Set 6 : Removed unrelated chagnes #

Total comments: 13

Patch Set 7 : Fixed a typo #

Patch Set 8 : Addresed comments #

Total comments: 7

Patch Set 9 : Rebase and address comments #

Patch Set 10 : Changed comments #

Patch Set 11 : Rebase #

Total comments: 4

Patch Set 12 : Added deps to ui/gfx/mojo #

Patch Set 13 : Address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -42 lines) Patch
M cc/ipc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 1 comment Download
M cc/ipc/display_compositor.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +20 lines, -1 line 0 comments Download
M cc/surfaces/compositor_frame_sink_support.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/surfaces/display_compositor.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M services/ui/surfaces/display_compositor.cc View 1 2 3 4 5 chunks +16 lines, -9 lines 0 comments Download
M services/ui/surfaces/gpu_compositor_frame_sink.h View 1 2 3 4 5 6 7 8 5 chunks +21 lines, -6 lines 0 comments Download
M services/ui/surfaces/gpu_compositor_frame_sink.cc View 1 2 3 4 3 chunks +30 lines, -4 lines 0 comments Download
M services/ui/ws/frame_generator.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M services/ui/ws/server_window.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -5 lines 0 comments Download
M services/ui/ws/server_window.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager.h View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager.cc View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -10 lines 0 comments Download

Messages

Total messages: 85 (43 generated)
Fady Samuel
drive-by review + added kylechar@ and sadrul@ on how display management stuff will talk to ...
4 years ago (2016-12-16 05:29:40 UTC) #15
Alex Z.
https://codereview.chromium.org/2579693004/diff/60001/services/ui/ws/frame_generator.cc File services/ui/ws/frame_generator.cc (right): https://codereview.chromium.org/2579693004/diff/60001/services/ui/ws/frame_generator.cc#newcode46 services/ui/ws/frame_generator.cc:46: cc::mojom::DisplayPrivatePtr display_private; On 2016/12/16 05:29:39, Fady Samuel wrote: > ...
4 years ago (2016-12-16 16:42:01 UTC) #19
kylechar
https://codereview.chromium.org/2579693004/diff/60001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/60001/cc/ipc/display_compositor.mojom#newcode66 cc/ipc/display_compositor.mojom:66: SetDisplayColorSpace(gfx.mojom.ColorSpace color_space); On 2016/12/16 05:29:39, Fady Samuel wrote: > ...
4 years ago (2016-12-16 17:08:32 UTC) #21
sadrul
From the CL description: > Added DisplayPrivate mojo interface to hide cc::Display from ContextFactory. What ...
4 years ago (2016-12-16 17:12:05 UTC) #22
danakj
https://codereview.chromium.org/2579693004/diff/120001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/120001/cc/ipc/display_compositor.mojom#newcode65 cc/ipc/display_compositor.mojom:65: ResizeDisplay(gfx.mojom.Size size); On 2016/12/16 17:12:05, sadrul wrote: > Can ...
4 years ago (2016-12-16 17:13:41 UTC) #23
kylechar
https://codereview.chromium.org/2579693004/diff/120001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/120001/cc/ipc/display_compositor.mojom#newcode28 cc/ipc/display_compositor.mojom:28: CreateDisplayCompositorFrameSink( Comments to disambiguate CreateDisplayCompositorFrameSink() vs CreateOffscreenCompositorFrameSink() would be ...
4 years ago (2016-12-16 17:15:13 UTC) #24
Fady Samuel
https://codereview.chromium.org/2579693004/diff/120001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/120001/cc/ipc/display_compositor.mojom#newcode62 cc/ipc/display_compositor.mojom:62: // cc::Display. nit: I would not reference GpuCompositorFrameSink here, ...
4 years ago (2016-12-16 17:18:19 UTC) #25
sadrul
btw: can the ui/gfx/ changes be in a separate CL?
4 years ago (2016-12-16 17:19:41 UTC) #26
Fady Samuel
So the intent of this change is to content mus-ws with mus-gpu for cc::Display operations. ...
4 years ago (2016-12-16 17:25:11 UTC) #27
Alex Z.
https://codereview.chromium.org/2579693004/diff/120001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/120001/cc/ipc/display_compositor.mojom#newcode28 cc/ipc/display_compositor.mojom:28: CreateDisplayCompositorFrameSink( On 2016/12/16 17:15:12, kylechar wrote: > Comments to ...
4 years ago (2016-12-19 19:27:47 UTC) #29
Fady Samuel
lgtm
4 years ago (2016-12-19 19:36:23 UTC) #30
Alex Z.
jbauman@chromium.org: Please review changes in compositor_frame_sink_support.cc msw@chromium.org: Please review changes in services/ui/ws/ tsepez@: Please review ...
4 years ago (2016-12-19 19:56:09 UTC) #33
Tom Sepez
https://codereview.chromium.org/2579693004/diff/160001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/160001/cc/ipc/display_compositor.mojom#newcode16 cc/ipc/display_compositor.mojom:16: // See cc//surfaces/display.h nit: path typo https://codereview.chromium.org/2579693004/diff/160001/cc/ipc/display_compositor.mojom#newcode21 cc/ipc/display_compositor.mojom:21: SetOutputIsSecure(bool ...
4 years ago (2016-12-19 20:14:24 UTC) #34
msw
services/ui/ws/ rubber stamp lgtm with tangential/minor qs https://codereview.chromium.org/2579693004/diff/160001/services/ui/ws/server_window.h File services/ui/ws/server_window.h (right): https://codereview.chromium.org/2579693004/diff/160001/services/ui/ws/server_window.h#newcode62 services/ui/ws/server_window.h:62: // TODO(fsamuel): ...
4 years ago (2016-12-19 20:18:11 UTC) #35
Fady Samuel
https://codereview.chromium.org/2579693004/diff/160001/services/ui/ws/server_window.h File services/ui/ws/server_window.h (right): https://codereview.chromium.org/2579693004/diff/160001/services/ui/ws/server_window.h#newcode62 services/ui/ws/server_window.h:62: // TODO(fsamuel): We should not be passing in |gpu_memory_buffer_manager| ...
4 years ago (2016-12-19 20:20:19 UTC) #36
Alex Z.
https://codereview.chromium.org/2579693004/diff/160001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/160001/cc/ipc/display_compositor.mojom#newcode16 cc/ipc/display_compositor.mojom:16: // See cc//surfaces/display.h On 2016/12/19 20:14:23, Tom Sepez wrote: ...
4 years ago (2016-12-19 20:28:27 UTC) #37
Alex Z.
https://codereview.chromium.org/2579693004/diff/160001/services/ui/ws/server_window.h File services/ui/ws/server_window.h (right): https://codereview.chromium.org/2579693004/diff/160001/services/ui/ws/server_window.h#newcode62 services/ui/ws/server_window.h:62: // TODO(fsamuel): We should not be passing in |gpu_memory_buffer_manager| ...
4 years ago (2016-12-19 20:53:29 UTC) #38
jbauman
lgtm
4 years ago (2016-12-20 00:41:05 UTC) #39
rjkroege
I dropped by (sorry) to understand display::Display to cc::Display integration. It's not yet clear to ...
4 years ago (2016-12-20 00:51:52 UTC) #41
Alex Z.
https://codereview.chromium.org/2579693004/diff/200001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/200001/cc/ipc/display_compositor.mojom#newcode16 cc/ipc/display_compositor.mojom:16: // See cc/surfaces/display.h On 2016/12/20 00:51:51, rjkroege wrote: > ...
4 years ago (2016-12-20 15:36:53 UTC) #42
Alex Z.
https://codereview.chromium.org/2579693004/diff/200001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/200001/cc/ipc/display_compositor.mojom#newcode16 cc/ipc/display_compositor.mojom:16: // See cc/surfaces/display.h On 2016/12/20 00:51:51, rjkroege wrote: > ...
4 years ago (2016-12-20 15:49:12 UTC) #43
Tom Sepez
mojom LGTM
4 years ago (2016-12-20 17:12:03 UTC) #44
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/2579693004/220001
4 years ago (2016-12-20 17:42:27 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/183796)
4 years ago (2016-12-20 18:47:39 UTC) #49
rjkroege
https://codereview.chromium.org/2579693004/diff/200001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/200001/cc/ipc/display_compositor.mojom#newcode16 cc/ipc/display_compositor.mojom:16: // See cc/surfaces/display.h On 2016/12/20 15:49:11, StarAZ1 wrote: > ...
4 years ago (2016-12-20 19:18:08 UTC) #50
Alex Z.
https://codereview.chromium.org/2579693004/diff/200001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/200001/cc/ipc/display_compositor.mojom#newcode16 cc/ipc/display_compositor.mojom:16: // See cc/surfaces/display.h On 2016/12/20 19:18:08, rjkroege wrote: > ...
4 years ago (2016-12-20 19:55:54 UTC) #51
rjkroege
Thanks for improving the comments. lgtm
4 years ago (2016-12-20 20:14:36 UTC) #52
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/2579693004/240001
4 years ago (2016-12-21 15:26:11 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/126662) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-21 15:28:09 UTC) #57
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/2579693004/260001
4 years ago (2016-12-21 15:36:19 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/184448)
4 years ago (2016-12-21 16:49:43 UTC) #62
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/2579693004/260001
4 years ago (2016-12-21 16:51:39 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/185043)
4 years ago (2016-12-21 17:42:27 UTC) #66
Fady Samuel
I've seen this failure before, you need to reference //ui/gfx/mojo directly in internal_interfaces: mojom("internal_interfaces") { ...
4 years ago (2016-12-21 18:09:10 UTC) #67
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/2579693004/280001
4 years ago (2016-12-21 18:18:25 UTC) #70
Fady Samuel
On 2016/12/21 18:09:10, Fady Samuel wrote: > I've seen this failure before, you need to ...
4 years ago (2016-12-21 18:19:54 UTC) #72
Fady Samuel
Looks like you're lacking an OWNER for cc/ipc/BUILD.gn. Please TBR=danakj@chromium.org
4 years ago (2016-12-21 18:28:34 UTC) #73
Alex Z.
https://codereview.chromium.org/2579693004/diff/260001/cc/ipc/display_compositor.mojom File cc/ipc/display_compositor.mojom (right): https://codereview.chromium.org/2579693004/diff/260001/cc/ipc/display_compositor.mojom#newcode49 cc/ipc/display_compositor.mojom:49: // CreateOffscreenCompositorFrameSink is used by non-privileged clients. On 2016/12/21 ...
4 years ago (2016-12-21 18:36:14 UTC) #75
danakj
https://codereview.chromium.org/2579693004/diff/300001/cc/ipc/BUILD.gn File cc/ipc/BUILD.gn (right): https://codereview.chromium.org/2579693004/diff/300001/cc/ipc/BUILD.gn#newcode81 cc/ipc/BUILD.gn:81: "//ui/gfx/mojo", LGTM
4 years ago (2016-12-21 18:40:48 UTC) #77
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/2579693004/300001
4 years ago (2016-12-21 18:47:45 UTC) #80
commit-bot: I haz the power
Committed patchset #13 (id:300001)
4 years ago (2016-12-21 20:04:17 UTC) #83
commit-bot: I haz the power
4 years ago (2016-12-21 20:06:38 UTC) #85
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/dc7e15988c2612f4bdd66e29b238a4eb3fce5cee
Cr-Commit-Position: refs/heads/master@{#440192}

Powered by Google App Engine
This is Rietveld 408576698