OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module mojo; | 5 module mojo; |
6 | 6 |
7 import "ui/mojo/geometry/geometry.mojom"; | 7 import "ui/mojo/geometry/geometry.mojom"; |
8 import "components/view_manager/public/interfaces/quads.mojom"; | 8 import "components/view_manager/public/interfaces/quads.mojom"; |
9 | 9 |
10 enum ResourceFormat { | 10 enum ResourceFormat { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 MailboxHolder mailbox_holder; | 43 MailboxHolder mailbox_holder; |
44 bool is_repeated; | 44 bool is_repeated; |
45 bool is_software; | 45 bool is_software; |
46 }; | 46 }; |
47 | 47 |
48 // See src/cc/output/compositor_frame.h. | 48 // See src/cc/output/compositor_frame.h. |
49 struct CompositorFrame { | 49 struct CompositorFrame { |
50 array<TransferableResource> resources; | 50 array<TransferableResource> resources; |
51 array<Pass> passes; | 51 array<Pass> passes; |
52 }; | 52 }; |
| 53 |
| 54 // CompositorFrameReceiver is an interface for receiving CompositorFrame |
| 55 // structs. This is a separate interface to allow CompositorFrames to be |
| 56 // delivered from supplementary (not main) threads of a mojo app. |
| 57 interface CompositorFrameReceiver { |
| 58 // After the submitted frame is drawn for the first time, the receiver will |
| 59 // respond to the SubmitFrame message. Clients should use this acknowledgement |
| 60 // to ratelimit frame submissions. |
| 61 SubmitCompositorFrame(CompositorFrame frame) => (); |
| 62 }; |
OLD | NEW |