OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 module mus.mojom; | |
6 | |
7 import "cc/ipc/compositor_frame.mojom"; | |
8 import "cc/ipc/returned_resource.mojom"; | |
9 | |
10 // A Surface is an interface for receiving CompositorFrame structs. This is a | |
11 // separate interface to allow CompositorFrames to be delivered from | |
12 // supplementary (not main) threads of a mojo app. | |
13 interface Surface { | |
14 // After the submitted frame is drawn for the first time, the receiver will | |
15 // respond to the SubmitFrame message. Clients should use this acknowledgement | |
16 // to ratelimit frame submissions. | |
17 SubmitCompositorFrame(cc.mojom.CompositorFrame frame) => (); | |
18 }; | |
19 | |
20 interface SurfaceClient { | |
21 ReturnResources(array<cc.mojom.ReturnedResource> resources); | |
22 }; | |
OLD | NEW |