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

Side by Side Diff: mojo/services/public/interfaces/surfaces/surfaces.mojom

Issue 756673004: Surfaces should acknowledge frame submissions (Closed) Base URL: git@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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module mojo; 5 module mojo;
6 6
7 import "mojo/services/public/interfaces/geometry/geometry.mojom"; 7 import "mojo/services/public/interfaces/geometry/geometry.mojom";
8 import "mojo/services/public/interfaces/gpu/command_buffer.mojom"; 8 import "mojo/services/public/interfaces/gpu/command_buffer.mojom";
9 import "mojo/services/public/interfaces/surfaces/quads.mojom"; 9 import "mojo/services/public/interfaces/surfaces/quads.mojom";
10 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"; 10 import "mojo/services/public/interfaces/surfaces/surface_id.mojom";
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ReturnResources(array<ReturnedResource> resources); 55 ReturnResources(array<ReturnedResource> resources);
56 }; 56 };
57 57
58 [Client=SurfaceClient] 58 [Client=SurfaceClient]
59 interface Surface { 59 interface Surface {
60 // The id is created by the client and must be unique and contain the 60 // The id is created by the client and must be unique and contain the
61 // connection's namespace in the upper 32 bits. 61 // connection's namespace in the upper 32 bits.
62 CreateSurface(SurfaceId id, Size size); 62 CreateSurface(SurfaceId id, Size size);
63 63
64 // The client can only submit frames to surfaces created with this connection. 64 // The client can only submit frames to surfaces created with this connection.
65 SubmitFrame(SurfaceId id, Frame frame); 65 SubmitFrame(SurfaceId id, Frame frame) => ();
jamesr 2014/11/24 20:42:01 can you document the callback a bit?
66 DestroySurface(SurfaceId id); 66 DestroySurface(SurfaceId id);
67 67
68 CreateGLES2BoundSurface(CommandBuffer gles2_client, 68 CreateGLES2BoundSurface(CommandBuffer gles2_client,
69 SurfaceId id, 69 SurfaceId id,
70 Size size); 70 Size size);
71 }; 71 };
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/viewport_surface.cc ('k') | mojo/services/surfaces/surfaces_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698