| 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"; |
| 11 import "cc/ipc/local_surface_id.mojom"; | 11 import "cc/ipc/local_surface_id.mojom"; |
| 12 import "cc/ipc/surface_reference.mojom"; | 12 import "cc/ipc/surface_id.mojom"; |
| 13 import "cc/ipc/returned_resource.mojom"; | 13 import "cc/ipc/returned_resource.mojom"; |
| 14 import "cc/ipc/surface_sequence.mojom"; | 14 import "cc/ipc/surface_sequence.mojom"; |
| 15 import "ui/gfx/geometry/mojo/geometry.mojom"; | 15 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 16 | 16 |
| 17 // A MojoCompositorFrameSink is an interface for receiving CompositorFrame | 17 // A MojoCompositorFrameSink is an interface for receiving CompositorFrame |
| 18 // structs. A CompositorFrame contains the complete output meant for display. | 18 // structs. A CompositorFrame contains the complete output meant for display. |
| 19 // Each time a client has a graphical update, and receives an OnBeginFrame, it | 19 // Each time a client has a graphical update, and receives an OnBeginFrame, it |
| 20 // is responsible for creating a CompositorFrame to update its portion of the | 20 // is responsible for creating a CompositorFrame to update its portion of the |
| 21 // screen. | 21 // screen. |
| 22 interface MojoCompositorFrameSink { | 22 interface MojoCompositorFrameSink { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 set |
| 74 // up BeginFrameSource hierarchies. This API lives in SurfaceManager but is | 74 // up BeginFrameSource hierarchies. This API lives in SurfaceManager but is |
| 75 // called from here in order to ensure that hierarchy registration does not race | 75 // called from here in order to ensure that hierarchy registration does not race |
| 76 // CompositorFrameSink creation. | 76 // CompositorFrameSink creation. |
| 77 interface MojoCompositorFrameSinkPrivate { | 77 interface MojoCompositorFrameSinkPrivate { |
| 78 AddChildFrameSink(FrameSinkId child_frame_sink_id); | 78 AddChildFrameSink(FrameSinkId child_frame_sink_id); |
| 79 RemoveChildFrameSink(FrameSinkId child_frame_sink_id); | 79 RemoveChildFrameSink(FrameSinkId child_frame_sink_id); |
| 80 | 80 |
| 81 // Claims this FrameSinkId will embed |surface_id| so it should own the |
| 82 // temporary reference to |surface_id|. |
| 83 ClaimTemporaryReference(SurfaceId surface_id); |
| 84 |
| 81 // Requests that the renderer send back a copy of the surface that this | 85 // 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 | 86 // CompositorFrameSink submits to. The result can be in form of a bitmap |
| 83 // or a texture. See cc::CopyOutputRequest. | 87 // or a texture. See cc::CopyOutputRequest. |
| 84 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request); | 88 RequestCopyOfSurface(cc.mojom.CopyOutputRequest request); |
| 85 }; | 89 }; |
| OLD | NEW |