Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: cc/ipc/mojo_compositor_frame_sink.mojom

Issue 2711913006: Move FrameSink hierarchy registration to DisplayCompositor interface (Closed)
Patch Set: Fix mojom Formatting Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/ipc/display_compositor.mojom ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « cc/ipc/display_compositor.mojom ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698