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/frame_sink_id.mojom"; | 9 import "cc/ipc/frame_sink_id.mojom"; |
10 import "cc/ipc/local_frame_id.mojom"; | 10 import "cc/ipc/local_frame_id.mojom"; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // TODO(fsamuel): This method ought not be necessary with unified BeginFrame. | 42 // TODO(fsamuel): This method ought not be necessary with unified BeginFrame. |
43 // However, there's a fair amount of cleanup and refactoring necessary to get | 43 // However, there's a fair amount of cleanup and refactoring necessary to get |
44 // rid of it. | 44 // rid of it. |
45 DidReceiveCompositorFrameAck(); | 45 DidReceiveCompositorFrameAck(); |
46 | 46 |
47 // Notification for the client to generate a CompositorFrame. | 47 // Notification for the client to generate a CompositorFrame. |
48 OnBeginFrame(BeginFrameArgs args); | 48 OnBeginFrame(BeginFrameArgs args); |
49 | 49 |
50 // Returns resources sent to SubmitCompositorFrame to be reused or freed. | 50 // Returns resources sent to SubmitCompositorFrame to be reused or freed. |
51 ReclaimResources(ReturnedResourceArray resources); | 51 ReclaimResources(ReturnedResourceArray resources); |
| 52 |
| 53 WillDrawSurface(); |
52 }; | 54 }; |
53 | 55 |
54 // MojoCompositorFrameSinkPrivate is used by the display compositor host to set | 56 // MojoCompositorFrameSinkPrivate is used by the display compositor host to set |
55 // up BeginFrameSource hierarchies. This API lives in SurfaceManager but is | 57 // up BeginFrameSource hierarchies. This API lives in SurfaceManager but is |
56 // called from here in order to ensure that hierarchy registration does not race | 58 // called from here in order to ensure that hierarchy registration does not race |
57 // CompositorFrameSink creation. | 59 // CompositorFrameSink creation. |
58 interface MojoCompositorFrameSinkPrivate { | 60 interface MojoCompositorFrameSinkPrivate { |
59 AddChildFrameSink(FrameSinkId child_frame_sink_id); | 61 AddChildFrameSink(FrameSinkId child_frame_sink_id); |
60 RemoveChildFrameSink(FrameSinkId child_frame_sink_id); | 62 RemoveChildFrameSink(FrameSinkId child_frame_sink_id); |
61 }; | 63 }; |
OLD | NEW |