|
|
Created:
4 years, 3 months ago by xidachen Modified:
4 years, 3 months ago CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, piman+watch_chromium.org, cc-bugs_chromium.org, darin (slow to review), jbroman, xlai (Olivia), Ian Vollick Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMove part of display_compositor's interface to cc/ipc
In display_compositor, we have CompositorFrameSink and CompositorFrameSinkClient
interface. Since we already have cc/output/compositor_frame_sink class,
it makes more sense to move these two interfaces to cc/ipc.
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
Committed: https://crrev.com/284a2b2247742cfa9e7039dbce4bf75900272bd6
Cr-Commit-Position: refs/heads/master@{#419248}
Patch Set 1 #
Total comments: 12
Patch Set 2 : address comments #Patch Set 3 : semicolon #
Total comments: 1
Patch Set 4 : nits #
Messages
Total messages: 26 (8 generated)
Description was changed from ========== Move part of display_compositor's interface to cc/ipc In display_compositor, we have CompositorFrameSink and CompositorFrameSinkClient interface. Since we already have cc/output/compositor_frame_sink class, it makes more sense to move these two interfaces to cc/ipc. ========== to ========== Move part of display_compositor's interface to cc/ipc In display_compositor, we have CompositorFrameSink and CompositorFrameSinkClient interface. Since we already have cc/output/compositor_frame_sink class, it makes more sense to move these two interfaces to cc/ipc. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ==========
xidachen@chromium.org changed reviewers: + danakj@chromium.org, dcheng@chromium.org, fsamuel@chromium.org
PTAL
This is going in a good direction! Thanks for doing this! https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:7: Please place in module cc.mojom; https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:13: interface MojoCompositorFrameSink { Please rename to CompositorFrameSink. Mojo is redundant. https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:18: SubmitCompositorFrame(cc.mojom.CompositorFrame frame) => (); I don't think we need the callback? danakj@ could answer better I think. Frame ratelimiting is now determined by unified beginframe. https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:27: interface MojoCompositorFrameSinkClient { Drop mojo please. It's redundant.
cc some more people.
cc some more people.
https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:7: On 2016/09/16 14:08:02, Fady Samuel wrote: > Please place in module cc.mojom; Done. https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:13: interface MojoCompositorFrameSink { On 2016/09/16 14:08:02, Fady Samuel wrote: > Please rename to CompositorFrameSink. Mojo is redundant. This prefix is suggested by Dana. Her concern is that without this prefix, when people talk about CompositorFrameSink, it is confusing because cc already have a CompositorFrameSink class. https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:18: SubmitCompositorFrame(cc.mojom.CompositorFrame frame) => (); On 2016/09/16 14:08:03, Fady Samuel wrote: > I don't think we need the callback? danakj@ could answer better I think. Frame > ratelimiting is now determined by unified beginframe. I will defer that to danakj@. Thanks.
https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:13: interface MojoCompositorFrameSink { On 2016/09/16 14:32:00, xidachen wrote: > On 2016/09/16 14:08:02, Fady Samuel wrote: > > Please rename to CompositorFrameSink. Mojo is redundant. > > This prefix is suggested by Dana. Her concern is that without this prefix, when > people talk about CompositorFrameSink, it is confusing because cc already have a > CompositorFrameSink class. Dana, Xida, we place all cc mojo interfaces in a cc::mojom namespace for this purpose. I think the mojom namespace captures the fact that this is mojo and so there shouldn't be any confusion, WDYT?
On 2016/09/16 14:35:50, Fady Samuel wrote: > https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... > File cc/ipc/mojo_compositor_frame_sink.mojom (right): > > https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... > cc/ipc/mojo_compositor_frame_sink.mojom:13: interface MojoCompositorFrameSink { > On 2016/09/16 14:32:00, xidachen wrote: > > On 2016/09/16 14:08:02, Fady Samuel wrote: > > > Please rename to CompositorFrameSink. Mojo is redundant. > > > > This prefix is suggested by Dana. Her concern is that without this prefix, > when > > people talk about CompositorFrameSink, it is confusing because cc already have > a > > CompositorFrameSink class. > > Dana, Xida, we place all cc mojo interfaces in a cc::mojom namespace for this > purpose. I think the mojom namespace captures the fact that this is mojo and so > there shouldn't be any confusion, WDYT? I personally agree with Fady. cc::mojom should be sufficient to clarify.
https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:13: interface MojoCompositorFrameSink { On 2016/09/16 14:35:50, Fady Samuel wrote: > On 2016/09/16 14:32:00, xidachen wrote: > > On 2016/09/16 14:08:02, Fady Samuel wrote: > > > Please rename to CompositorFrameSink. Mojo is redundant. > > > > This prefix is suggested by Dana. Her concern is that without this prefix, > when > > people talk about CompositorFrameSink, it is confusing because cc already have > a > > CompositorFrameSink class. > > Dana, Xida, we place all cc mojo interfaces in a cc::mojom namespace for this > purpose. I think the mojom namespace captures the fact that this is mojo and so > there shouldn't be any confusion, WDYT? I asked for it. When we talk about classes we talk about them by name, and having two classes with the same name under cc/ seems like its going to be confusing. We can rename it when there aren't two with the same name? https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:18: SubmitCompositorFrame(cc.mojom.CompositorFrame frame) => (); On 2016/09/16 14:32:00, xidachen wrote: > On 2016/09/16 14:08:03, Fady Samuel wrote: > > I don't think we need the callback? danakj@ could answer better I think. > Frame > > ratelimiting is now determined by unified beginframe. > > I will defer that to danakj@. Thanks. We still need a swap ack for now, scheduler would DCHECK if it did not receive a swap ack.
On 2016/09/16 17:56:37, danakj wrote: > https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... > File cc/ipc/mojo_compositor_frame_sink.mojom (right): > > https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... > cc/ipc/mojo_compositor_frame_sink.mojom:13: interface MojoCompositorFrameSink { > On 2016/09/16 14:35:50, Fady Samuel wrote: > > On 2016/09/16 14:32:00, xidachen wrote: > > > On 2016/09/16 14:08:02, Fady Samuel wrote: > > > > Please rename to CompositorFrameSink. Mojo is redundant. > > > > > > This prefix is suggested by Dana. Her concern is that without this prefix, > > when > > > people talk about CompositorFrameSink, it is confusing because cc already > have > > a > > > CompositorFrameSink class. > > > > Dana, Xida, we place all cc mojo interfaces in a cc::mojom namespace for this > > purpose. I think the mojom namespace captures the fact that this is mojo and > so > > there shouldn't be any confusion, WDYT? > > I asked for it. When we talk about classes we talk about them by name, and > having two classes with the same name under cc/ seems like its going to be > confusing. We can rename it when there aren't two with the same name? > OK, I think that's fine then.
https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:13: interface MojoCompositorFrameSink { On 2016/09/16 17:56:37, danakj wrote: > On 2016/09/16 14:35:50, Fady Samuel wrote: > > On 2016/09/16 14:32:00, xidachen wrote: > > > On 2016/09/16 14:08:02, Fady Samuel wrote: > > > > Please rename to CompositorFrameSink. Mojo is redundant. > > > > > > This prefix is suggested by Dana. Her concern is that without this prefix, > > when > > > people talk about CompositorFrameSink, it is confusing because cc already > have > > a > > > CompositorFrameSink class. > > > > Dana, Xida, we place all cc mojo interfaces in a cc::mojom namespace for this > > purpose. I think the mojom namespace captures the fact that this is mojo and > so > > there shouldn't be any confusion, WDYT? > > I asked for it. When we talk about classes we talk about them by name, and > having two classes with the same name under cc/ seems like its going to be > confusing. We can rename it when there aren't two with the same name? Sure. sgtm https://codereview.chromium.org/2344183002/diff/1/cc/ipc/mojo_compositor_fram... cc/ipc/mojo_compositor_frame_sink.mojom:18: SubmitCompositorFrame(cc.mojom.CompositorFrame frame) => (); On 2016/09/16 17:56:37, danakj wrote: > On 2016/09/16 14:32:00, xidachen wrote: > > On 2016/09/16 14:08:03, Fady Samuel wrote: > > > I don't think we need the callback? danakj@ could answer better I think. > > Frame > > > ratelimiting is now determined by unified beginframe. > > > > I will defer that to danakj@. Thanks. > > We still need a swap ack for now, scheduler would DCHECK if it did not receive a > swap ack. OK
services/ui/gpu lgtm
A probably dumb question, but how does this interface differ from Surface / SurfaceClient? https://codereview.chromium.org/2344183002/diff/40001/services/ui/gpu/display... File services/ui/gpu/display_compositor/compositor_frame_sink_impl.h (right): https://codereview.chromium.org/2344183002/diff/40001/services/ui/gpu/display... services/ui/gpu/display_compositor/compositor_frame_sink_impl.h:36: // cc::mojom::CompositorFrameSink implementation. Nit: MojoCompositorFrameSink
On 2016/09/16 18:23:45, dcheng wrote: > A probably dumb question, but how does this interface differ from Surface / > SurfaceClient? > > https://codereview.chromium.org/2344183002/diff/40001/services/ui/gpu/display... > File services/ui/gpu/display_compositor/compositor_frame_sink_impl.h (right): > > https://codereview.chromium.org/2344183002/diff/40001/services/ui/gpu/display... > services/ui/gpu/display_compositor/compositor_frame_sink_impl.h:36: // > cc::mojom::CompositorFrameSink implementation. > Nit: MojoCompositorFrameSink It will replace it. Surface/SurfaceClient are going away. We are moving towards the "FrameSink" terminology.
On 2016/09/16 18:25:36, Fady Samuel wrote: > On 2016/09/16 18:23:45, dcheng wrote: > > A probably dumb question, but how does this interface differ from Surface / > > SurfaceClient? > > > > > https://codereview.chromium.org/2344183002/diff/40001/services/ui/gpu/display... > > File services/ui/gpu/display_compositor/compositor_frame_sink_impl.h (right): > > > > > https://codereview.chromium.org/2344183002/diff/40001/services/ui/gpu/display... > > services/ui/gpu/display_compositor/compositor_frame_sink_impl.h:36: // > > cc::mojom::CompositorFrameSink implementation. > > Nit: MojoCompositorFrameSink > > It will replace it. Surface/SurfaceClient are going away. We are moving towards > the "FrameSink" terminology. mojom lgtm with nit addressed
The CQ bit was checked by xidachen@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
LGTM
The CQ bit was unchecked by xidachen@chromium.org
The CQ bit was checked by xidachen@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from fsamuel@chromium.org, dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/2344183002/#ps60001 (title: "nits")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Move part of display_compositor's interface to cc/ipc In display_compositor, we have CompositorFrameSink and CompositorFrameSinkClient interface. Since we already have cc/output/compositor_frame_sink class, it makes more sense to move these two interfaces to cc/ipc. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ========== to ========== Move part of display_compositor's interface to cc/ipc In display_compositor, we have CompositorFrameSink and CompositorFrameSinkClient interface. Since we already have cc/output/compositor_frame_sink class, it makes more sense to move these two interfaces to cc/ipc. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/284a2b2247742cfa9e7039dbce4bf75900272bd6 Cr-Commit-Position: refs/heads/master@{#419248} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/284a2b2247742cfa9e7039dbce4bf75900272bd6 Cr-Commit-Position: refs/heads/master@{#419248} |