| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |