Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 import "cc/ipc/compositor_frame.mojom"; | |
| 6 import "cc/ipc/returned_resource.mojom"; | |
| 7 | |
|
Fady Samuel
2016/09/16 14:08:02
Please place in module cc.mojom;
xidachen
2016/09/16 14:32:00
Done.
| |
| 8 // A MojoCompositorFrameSink is an interface for receiving CompositorFrame | |
| 9 // structs. A CompositorFrame contains the complete output meant for display. | |
| 10 // Each time a client has a graphical update, and receives an OnBeginFrame, it | |
| 11 // is responsible for creating a CompositorFrame to update its portion of the | |
| 12 // screen. | |
| 13 interface MojoCompositorFrameSink { | |
|
Fady Samuel
2016/09/16 14:08:02
Please rename to CompositorFrameSink. Mojo is redu
xidachen
2016/09/16 14:32:00
This prefix is suggested by Dana. Her concern is t
Fady Samuel
2016/09/16 14:35:50
Dana, Xida, we place all cc mojo interfaces in a c
danakj
2016/09/16 17:56:37
I asked for it. When we talk about classes we talk
Fady Samuel
2016/09/16 18:00:36
Sure. sgtm
| |
| 14 // After the submitted frame is either drawn for the first time by the display | |
| 15 // compositor or discarded, the callback will be called. Clients should use | |
| 16 // this acknowledgement to ratelimit frame submissions. | |
| 17 // TODO(fsamuel): We should support identifying the CF in the callback. | |
| 18 SubmitCompositorFrame(cc.mojom.CompositorFrame frame) => (); | |
|
Fady Samuel
2016/09/16 14:08:03
I don't think we need the callback? danakj@ could
xidachen
2016/09/16 14:32:00
I will defer that to danakj@. Thanks.
danakj
2016/09/16 17:56:37
We still need a swap ack for now, scheduler would
Fady Samuel
2016/09/16 18:00:36
OK
| |
| 19 | |
| 20 // Lets the display compositor know that the client wishes to receive the next | |
| 21 // BeginFrame event. | |
| 22 SetNeedsBeginFrame(bool needs_begin_frame); | |
| 23 | |
| 24 // TODO(fsamuel): ReadbackBitmap API would be useful here. | |
| 25 }; | |
| 26 | |
| 27 interface MojoCompositorFrameSinkClient { | |
|
Fady Samuel
2016/09/16 14:08:02
Drop mojo please. It's redundant.
| |
| 28 ReturnResources(array<cc.mojom.ReturnedResource> resources); | |
| 29 }; | |
| OLD | NEW |