OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 cc.mojom; | 5 module cc.mojom; |
6 | 6 |
7 import "cc/ipc/begin_frame_args.mojom"; | 7 import "cc/ipc/begin_frame_args.mojom"; |
8 import "cc/ipc/compositor_frame.mojom"; | 8 import "cc/ipc/compositor_frame.mojom"; |
9 import "cc/ipc/copy_output_request.mojom"; | 9 import "cc/ipc/copy_output_request.mojom"; |
10 import "cc/ipc/frame_sink_id.mojom"; | 10 import "cc/ipc/frame_sink_id.mojom"; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Notification for the client to generate a CompositorFrame. | 63 // Notification for the client to generate a CompositorFrame. |
64 OnBeginFrame(BeginFrameArgs args); | 64 OnBeginFrame(BeginFrameArgs args); |
65 | 65 |
66 // Returns resources sent to SubmitCompositorFrame to be reused or freed. | 66 // Returns resources sent to SubmitCompositorFrame to be reused or freed. |
67 ReclaimResources(ReturnedResourceArray resources); | 67 ReclaimResources(ReturnedResourceArray resources); |
68 | 68 |
69 // Called when surface is being scheduled for a draw. | 69 // Called when surface is being scheduled for a draw. |
70 WillDrawSurface(LocalSurfaceId local_surface_id, gfx.mojom.Rect damage_rect); | 70 WillDrawSurface(LocalSurfaceId local_surface_id, gfx.mojom.Rect damage_rect); |
71 }; | 71 }; |
72 | 72 |
73 // MojoCompositorFrameSinkPrivate is used by the display compositor host to set | 73 // MojoCompositorFrameSinkPrivate is used by the display compositor host to |
74 // up BeginFrameSource hierarchies. This API lives in SurfaceManager but is | 74 // perform privilieged operations on a CompositorFrameSink such as |
75 // called from here in order to ensure that hierarchy registration does not race | 75 // CopyOutputRequests. |
76 // CompositorFrameSink creation. | |
77 interface MojoCompositorFrameSinkPrivate { | 76 interface MojoCompositorFrameSinkPrivate { |
78 AddChildFrameSink(FrameSinkId child_frame_sink_id); | |
79 RemoveChildFrameSink(FrameSinkId child_frame_sink_id); | |
80 | |
81 // Requests that the renderer send back a copy of the surface that this | 77 // Requests that the renderer send back a copy of the surface that this |
82 // CompositorFrameSink submits to. The result can be in form of a bitmap | 78 // CompositorFrameSink submits to. The result can be in form of a bitmap |
83 // or a texture. See cc::CopyOutputRequest. | 79 // or a texture. See cc::CopyOutputRequest. |
84 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request); | 80 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request); |
85 }; | 81 }; |
OLD | NEW |