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

Unified Diff: components/view_manager/public/interfaces/surfaces.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/surfaces.mojom
diff --git a/components/view_manager/public/interfaces/surfaces.mojom b/components/view_manager/public/interfaces/surfaces.mojom
index 2413e77cbd3b99b453c019b163061ad7d430ebb9..583821c72e57cf1a4585505d205254096a528295 100644
--- a/components/view_manager/public/interfaces/surfaces.mojom
+++ b/components/view_manager/public/interfaces/surfaces.mojom
@@ -4,39 +4,7 @@
module mojo;
-import "components/view_manager/public/interfaces/quads.mojom";
-import "components/view_manager/public/interfaces/surface_id.mojom";
-import "ui/mojo/geometry/geometry.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;
-};
+import "components/view_manager/public/interfaces/compositor_frame.mojom";
struct ReturnedResource {
uint32 id;
@@ -45,11 +13,6 @@ struct ReturnedResource {
bool lost;
};
-struct Frame {
- array<TransferableResource> resources;
- array<Pass> passes;
-};
-
interface ResourceReturner {
ReturnResources(array<ReturnedResource> resources);
};
@@ -72,6 +35,6 @@ interface Surface {
// After the submitted frame is drawn for the first time, the surface will
// respond to the SubmitFrame message. Clients should use this acknowledgement
// to ratelimit frame submissions.
- SubmitFrame(uint32 id_local, Frame frame) => ();
+ SubmitFrame(uint32 id_local, CompositorFrame frame) => ();
DestroySurface(uint32 id_local);
};

Powered by Google App Engine
This is Rietveld 408576698