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

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

Issue 504443002: Update mojo surfaces bindings and mojo/cc/ glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gn fixes Created 6 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 unified diff | Download patch | Annotate | Revision Log
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 import "mojo/services/public/interfaces/geometry/geometry.mojom" 5 import "mojo/services/public/interfaces/geometry/geometry.mojom"
6 import "mojo/services/gles2/command_buffer.mojom" 6 import "mojo/services/gles2/command_buffer.mojom"
7 import "mojo/services/public/interfaces/surfaces/quads.mojom" 7 import "mojo/services/public/interfaces/surfaces/quads.mojom"
8 import "mojo/services/public/interfaces/surfaces/surface_id.mojom" 8 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"
9 9
10 module mojo { 10 module mojo {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 int32 count; 45 int32 count;
46 bool lost; 46 bool lost;
47 }; 47 };
48 48
49 struct Frame { 49 struct Frame {
50 TransferableResource[] resources; 50 TransferableResource[] resources;
51 Pass[] passes; 51 Pass[] passes;
52 }; 52 };
53 53
54 interface SurfaceClient { 54 interface SurfaceClient {
55 SetIdNamespace(uint32 id);
56 ReturnResources(ReturnedResource[] resources); 55 ReturnResources(ReturnedResource[] resources);
57 }; 56 };
58 57
59 [Client=SurfaceClient] 58 [Client=SurfaceClient]
60 interface Surface { 59 interface Surface {
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 CreateSurface(SurfaceId id, Size size); 62 CreateSurface(SurfaceId id, Size size);
63
64 // The client can only submit frames to surfaces created with this connection.
62 SubmitFrame(SurfaceId id, Frame frame); 65 SubmitFrame(SurfaceId id, Frame frame);
63 DestroySurface(SurfaceId id); 66 DestroySurface(SurfaceId id);
64 67
65 CreateGLES2BoundSurface(CommandBuffer gles2_client, 68 CreateGLES2BoundSurface(CommandBuffer gles2_client,
66 SurfaceId id, 69 SurfaceId id,
67 Size size); 70 Size size);
68 }; 71 };
69 72
70 } 73 }
OLDNEW
« no previous file with comments | « mojo/services/public/interfaces/surfaces/BUILD.gn ('k') | mojo/services/public/interfaces/surfaces/surfaces_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698