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

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

Issue 361123002: Mojo surfaces service and example app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « mojo/mojo_services.gypi ('k') | mojo/services/surfaces/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/public/interfaces/surfaces/quads.mojom" 7 import "mojo/services/public/interfaces/surfaces/quads.mojom"
7 import "mojo/services/public/interfaces/surfaces/surface_id.mojom" 8 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"
8 9
9 module mojo.surfaces { 10 module mojo.surfaces {
10 11
11 enum ResourceFormat { 12 enum ResourceFormat {
12 RGBA_8888, 13 RGBA_8888,
13 RGBA_4444, 14 RGBA_4444,
14 BGRA_8888, 15 BGRA_8888,
15 LUMINANCE_8, 16 LUMINANCE_8,
(...skipping 27 matching lines...) Expand all
43 int32 count; 44 int32 count;
44 bool lost; 45 bool lost;
45 }; 46 };
46 47
47 struct Frame { 48 struct Frame {
48 TransferableResource[] resources; 49 TransferableResource[] resources;
49 Pass[] passes; 50 Pass[] passes;
50 }; 51 };
51 52
52 interface SurfaceClient { 53 interface SurfaceClient {
54 SetIdNamespace(uint32 id);
53 ReturnResources(ReturnedResource[] resources); 55 ReturnResources(ReturnedResource[] resources);
54 }; 56 };
55 57
56 [Client=SurfaceClient] 58 [Client=SurfaceClient]
57 interface Surface { 59 interface Surface {
58 CreateSurface(mojo.Size size) => (SurfaceId id); 60 CreateSurface(SurfaceId id, mojo.Size size);
59 SubmitFrame(SurfaceId id, Frame frame); 61 SubmitFrame(SurfaceId id, Frame frame);
60 DestroySurface(SurfaceId id); 62 DestroySurface(SurfaceId id);
63
64 CreateGLES2BoundSurface(mojo.CommandBuffer gles2_client,
65 SurfaceId id,
66 mojo.Size size);
61 }; 67 };
62 68
63 } 69 }
OLDNEW
« no previous file with comments | « mojo/mojo_services.gypi ('k') | mojo/services/surfaces/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698