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

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

Issue 2344183002: Move part of display_compositor's interface to cc/ipc (Closed)
Patch Set: nits Created 4 years, 3 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/BUILD.gn ('k') | services/ui/gpu/display_compositor/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 module cc.mojom;
6
7 import "cc/ipc/compositor_frame.mojom";
8 import "cc/ipc/returned_resource.mojom";
9
10 // A MojoCompositorFrameSink is an interface for receiving CompositorFrame
11 // structs. A CompositorFrame contains the complete output meant for display.
12 // Each time a client has a graphical update, and receives an OnBeginFrame, it
13 // is responsible for creating a CompositorFrame to update its portion of the
14 // screen.
15 interface MojoCompositorFrameSink {
16 // After the submitted frame is either drawn for the first time by the display
17 // compositor or discarded, the callback will be called. Clients should use
18 // this acknowledgement to ratelimit frame submissions.
19 // TODO(fsamuel): We should support identifying the CF in the callback.
20 SubmitCompositorFrame(cc.mojom.CompositorFrame frame) => ();
21
22 // Lets the display compositor know that the client wishes to receive the next
23 // BeginFrame event.
24 SetNeedsBeginFrame(bool needs_begin_frame);
25
26 // TODO(fsamuel): ReadbackBitmap API would be useful here.
27 };
28
29 interface MojoCompositorFrameSinkClient {
30 ReturnResources(array<cc.mojom.ReturnedResource> resources);
31 };
OLDNEW
« no previous file with comments | « cc/ipc/BUILD.gn ('k') | services/ui/gpu/display_compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698