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

Unified Diff: third_party/mojo_services/src/surfaces/public/interfaces/surfaces.mojom

Issue 877993004: Revert "Update mojo sdk to rev 8d45c89c30b230843c5bd6dd0693a555750946c0" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: third_party/mojo_services/src/surfaces/public/interfaces/surfaces.mojom
diff --git a/third_party/mojo_services/src/surfaces/public/interfaces/surfaces.mojom b/third_party/mojo_services/src/surfaces/public/interfaces/surfaces.mojom
index 71aed7ea94935afa68f750220327def2a9b16619..7badcd342655c2eb1508c9df8011c427a4a9e3c2 100644
--- a/third_party/mojo_services/src/surfaces/public/interfaces/surfaces.mojom
+++ b/third_party/mojo_services/src/surfaces/public/interfaces/surfaces.mojom
@@ -52,28 +52,21 @@ struct Frame {
array<Pass> passes;
};
-interface ResourceReturner {
+interface SurfaceClient {
+ // This sets the id namespace for this connection. This method will be invoked
+ // exactly once when a new connection is established.
+ SetIdNamespace(uint32 id_namespace);
ReturnResources(array<ReturnedResource> resources);
};
+[Client=SurfaceClient]
interface Surface {
- // Request the id namespace for this connection. Fully qualified surface ids
- // are the combination of the id_namespace for the connection that created the
- // surface and the id_local component allocated by the caller.
- GetIdNamespace() => (uint32 id_namespace);
-
- // Sets a ResourceReturner that will receive unused resources.
- SetResourceReturner(ResourceReturner returner);
-
- // Creates a new surface with the given local identifier. Once a surface is
- // created the caller may submit frames to it or destroy it using the local
- // identifier. The caller can also produce a fully qualified surface id that
- // can be embedded in frames produces by different connections.
CreateSurface(uint32 id_local);
- // 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.
+ // 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(uint32 id_local, Frame frame) => ();
DestroySurface(uint32 id_local);

Powered by Google App Engine
This is Rietveld 408576698