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

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: Addressed comments 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
new file mode 100644
index 0000000000000000000000000000000000000000..aba98dcdc85c4f5ac27f9d06a909624fdd8ccf85
--- /dev/null
+++ b/components/view_manager/public/interfaces/compositor_frame.mojom
@@ -0,0 +1,53 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mojo;
+
+import "ui/mojo/geometry/geometry.mojom";
+import "components/view_manager/public/interfaces/quads.mojom";
+
+enum ResourceFormat {
+ RGBA_8888,
+ RGBA_4444,
+ BGRA_8888,
+ ALPHA_8,
+ LUMINANCE_8,
+ RGB_565,
+ ETC1,
+};
+
+struct Mailbox {
+ array<int8, 64> name;
+};
+
+struct MailboxHolder {
+ Mailbox mailbox;
+ uint32 texture_target;
+ uint32 sync_point;
+};
+
+struct TransferableResource {
+ uint32 id;
+ ResourceFormat format;
+ uint32 filter;
+ Size size;
+ MailboxHolder mailbox_holder;
+ bool is_repeated;
+ bool is_software;
+};
+
+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