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

Unified Diff: mojo/services/public/interfaces/surfaces/surfaces.mojom

Issue 792813002: Restructure public side of surfaces service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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: mojo/services/public/interfaces/surfaces/surfaces.mojom
diff --git a/mojo/services/public/interfaces/surfaces/surfaces.mojom b/mojo/services/public/interfaces/surfaces/surfaces.mojom
deleted file mode 100644
index 0df7ea4cea4d5e48fe8652647689894932da140d..0000000000000000000000000000000000000000
--- a/mojo/services/public/interfaces/surfaces/surfaces.mojom
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright 2014 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 "mojo/services/public/interfaces/geometry/geometry.mojom";
-import "mojo/services/public/interfaces/gpu/command_buffer.mojom";
-import "mojo/services/public/interfaces/gpu/viewport_parameter_listener.mojom";
-import "mojo/services/public/interfaces/surfaces/quads.mojom";
-import "mojo/services/public/interfaces/surfaces/surface_id.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 ReturnedResource {
- uint32 id;
- uint32 sync_point;
- int32 count;
- bool lost;
-};
-
-struct Frame {
- array<TransferableResource> resources;
- array<Pass> passes;
-};
-
-interface SurfaceClient {
- ReturnResources(array<ReturnedResource> resources);
-};
-
-[Client=SurfaceClient]
-interface Surface {
- // The id is created by the client and must be unique and contain the
- // connection's namespace in the upper 32 bits.
- CreateSurface(SurfaceId id, Size size);
-
- // The client can only submit frames to surfaces created with this
- // connection. 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(SurfaceId id, Frame frame) => ();
- DestroySurface(SurfaceId id);
-
- CreateGLES2BoundSurface(CommandBuffer gles2_client,
- SurfaceId id,
- Size size,
- ViewportParameterListener& listener);
-};

Powered by Google App Engine
This is Rietveld 408576698