| 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_metadata.mojom"; | |
| 8 import "cc/ipc/quads.mojom"; | |
| 9 import "cc/ipc/returned_resource.mojom"; | |
| 10 import "cc/ipc/transferable_resource.mojom"; | |
| 11 import "ui/gfx/geometry/mojo/geometry.mojom"; | |
| 12 import "gpu/ipc/common/mailbox_holder.mojom"; | |
| 13 import "gpu/ipc/common/sync_token.mojom"; | |
| 14 | |
| 15 // See src/cc/output/compositor_frame.h. | |
| 16 struct CompositorFrame { | |
| 17 cc.mojom.CompositorFrameMetadata metadata; | |
| 18 array<cc.mojom.TransferableResource> resources; | |
| 19 array<cc.mojom.RenderPass> passes; | |
| 20 }; | |
| 21 | |
| 22 // A Surface is an interface for receiving CompositorFrame structs. This is a | |
| 23 // separate interface to allow CompositorFrames to be delivered from | |
| 24 // supplementary (not main) threads of a mojo app. | |
| 25 interface Surface { | |
| 26 // After the submitted frame is drawn for the first time, the receiver will | |
| 27 // respond to the SubmitFrame message. Clients should use this acknowledgement | |
| 28 // to ratelimit frame submissions. | |
| 29 SubmitCompositorFrame(CompositorFrame frame) => (); | |
| 30 }; | |
| 31 | |
| 32 interface SurfaceClient { | |
| 33 ReturnResources(array<cc.mojom.ReturnedResource> resources); | |
| 34 }; | |
| OLD | NEW |