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

Unified Diff: cc/ipc/mojo_compositor_frame_sink.mojom

Issue 2474113002: Mus+Ash: Unified BeginFrame Skeleton (Closed)
Patch Set: Remove window_tree.mojom.h Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/ipc/BUILD.gn ('k') | services/ui/public/cpp/window_compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/mojo_compositor_frame_sink.mojom
diff --git a/cc/ipc/mojo_compositor_frame_sink.mojom b/cc/ipc/mojo_compositor_frame_sink.mojom
index f75ded36f8a57d4d312df7bc5333c9865520957a..58f69d61916f7a4752e04a3dfd99b940544448bd 100644
--- a/cc/ipc/mojo_compositor_frame_sink.mojom
+++ b/cc/ipc/mojo_compositor_frame_sink.mojom
@@ -4,7 +4,9 @@
module cc.mojom;
+import "cc/ipc/begin_frame_args.mojom";
import "cc/ipc/compositor_frame.mojom";
+import "cc/ipc/frame_sink_id.mojom";
import "cc/ipc/returned_resource.mojom";
// A MojoCompositorFrameSink is an interface for receiving CompositorFrame
@@ -38,6 +40,18 @@ interface MojoCompositorFrameSinkClient {
// rid of it.
DidReceiveCompositorFrameAck();
+ // Notification for the client to generate a CompositorFrame.
+ OnBeginFrame(BeginFrameArgs args);
+
// Returns resources sent to SubmitCompositorFrame to be reused or freed.
ReclaimResources(ReturnedResourceArray resources);
};
+
+// MojoCompositorFrameSinkPrivate is used by the display compositor host to set
+// up BeginFrameSource hierarchies. This API lives in SurfaceManager but is
+// called from here in order to ensure that hierarchy registration does not race
+// CompositorFrameSink creation.
+interface MojoCompositorFrameSinkPrivate {
+ AddChildFrameSink(FrameSinkId child_frame_sink_id);
Tom Sepez 2016/11/03 22:25:52 Remind me, are these guessable? Do we care if the
Fady Samuel 2016/11/03 22:27:29 These are guessable, yes. I don't think we care be
+ RemoveChildFrameSink(FrameSinkId child_frame_sink_id);
+};
« no previous file with comments | « cc/ipc/BUILD.gn ('k') | services/ui/public/cpp/window_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698