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

Unified Diff: components/view_manager/public/interfaces/compositor_frame.mojom

Issue 1281663002: Mandoline: Allow submitting CompositorFrames directly to mojo::Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet anther rebase (YAR!!!) Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/view_manager/public/interfaces/compositor_frame.mojom
diff --git a/components/view_manager/public/interfaces/compositor_frame.mojom b/components/view_manager/public/interfaces/compositor_frame.mojom
index 314aee5de56fa6e293a304544e30420042f47259..a581e4da417fcc730afc6afa07e0f1422a88d5b5 100644
--- a/components/view_manager/public/interfaces/compositor_frame.mojom
+++ b/components/view_manager/public/interfaces/compositor_frame.mojom
@@ -50,3 +50,13 @@ struct CompositorFrame {
array<TransferableResource> resources;
array<Pass> passes;
};
+
+// CompositorFrameReceiver is an interface for receiving CompositorFrame
+// structs. This is a separate interface to allow CompositorFrames to be
+// delivered from supplementary (not main) threads of a mojo app.
+interface CompositorFrameReceiver {
+ // After the submitted frame is drawn for the first time, the receiver will
+ // respond to the SubmitFrame message. Clients should use this acknowledgement
+ // to ratelimit frame submissions.
+ SubmitCompositorFrame(CompositorFrame frame) => ();
+};

Powered by Google App Engine
This is Rietveld 408576698