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/geometry/public/interfaces/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/gpu/viewport_parameter_listener.mojom"; | 9 import "mojo/services/public/interfaces/gpu/viewport_parameter_listener.mojom"; |
10 import "mojo/services/surfaces/public/interfaces/quads.mojom"; | 10 import "mojo/services/surfaces/public/interfaces/quads.mojom"; |
11 import "mojo/services/surfaces/public/interfaces/surface_id.mojom"; | 11 import "mojo/services/surfaces/public/interfaces/surface_id.mojom"; |
12 | 12 |
13 enum ResourceFormat { | 13 enum ResourceFormat { |
14 RGBA_8888, | 14 RGBA_8888, |
15 RGBA_4444, | 15 RGBA_4444, |
16 BGRA_8888, | 16 BGRA_8888, |
17 ALPHA_8, | 17 ALPHA_8, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // surface will respond to the SubmitFrame message. Clients should use this | 67 // surface will respond to the SubmitFrame message. Clients should use this |
68 // acknowledgement to ratelimit frame submissions. | 68 // acknowledgement to ratelimit frame submissions. |
69 SubmitFrame(SurfaceId id, Frame frame) => (); | 69 SubmitFrame(SurfaceId id, Frame frame) => (); |
70 DestroySurface(SurfaceId id); | 70 DestroySurface(SurfaceId id); |
71 | 71 |
72 CreateGLES2BoundSurface(CommandBuffer gles2_client, | 72 CreateGLES2BoundSurface(CommandBuffer gles2_client, |
73 SurfaceId id, | 73 SurfaceId id, |
74 Size size, | 74 Size size, |
75 ViewportParameterListener& listener); | 75 ViewportParameterListener& listener); |
76 }; | 76 }; |
OLD | NEW |