Chromium Code Reviews| 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 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 Loading... | |
| 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 }; |
| OLD | NEW |