| 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 "geometry/public/interfaces/geometry.mojom"; | 7 import "geometry/public/interfaces/geometry.mojom"; |
| 8 import "gpu/public/interfaces/command_buffer.mojom"; | |
| 9 import "gpu/public/interfaces/viewport_parameter_listener.mojom"; | |
| 10 import "surfaces/public/interfaces/quads.mojom"; | 8 import "surfaces/public/interfaces/quads.mojom"; |
| 11 import "surfaces/public/interfaces/surface_id.mojom"; | 9 import "surfaces/public/interfaces/surface_id.mojom"; |
| 12 | 10 |
| 13 enum ResourceFormat { | 11 enum ResourceFormat { |
| 14 RGBA_8888, | 12 RGBA_8888, |
| 15 RGBA_4444, | 13 RGBA_4444, |
| 16 BGRA_8888, | 14 BGRA_8888, |
| 17 ALPHA_8, | 15 ALPHA_8, |
| 18 LUMINANCE_8, | 16 LUMINANCE_8, |
| 19 RGB_565, | 17 RGB_565, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // created the caller may submit frames to it or destroy it using the local | 67 // created the caller may submit frames to it or destroy it using the local |
| 70 // identifier. The caller can also produce a fully qualified surface id that | 68 // identifier. The caller can also produce a fully qualified surface id that |
| 71 // can be embedded in frames produces by different connections. | 69 // can be embedded in frames produces by different connections. |
| 72 CreateSurface(uint32 id_local); | 70 CreateSurface(uint32 id_local); |
| 73 | 71 |
| 74 // After the submitted frame is drawn for the first time, the surface will | 72 // After the submitted frame is drawn for the first time, the surface will |
| 75 // respond to the SubmitFrame message. Clients should use this acknowledgement | 73 // respond to the SubmitFrame message. Clients should use this acknowledgement |
| 76 // to ratelimit frame submissions. | 74 // to ratelimit frame submissions. |
| 77 SubmitFrame(uint32 id_local, Frame frame) => (); | 75 SubmitFrame(uint32 id_local, Frame frame) => (); |
| 78 DestroySurface(uint32 id_local); | 76 DestroySurface(uint32 id_local); |
| 79 | |
| 80 CreateGLES2BoundSurface(CommandBuffer gles2_client, | |
| 81 uint32 id_local, | |
| 82 Size size, | |
| 83 ViewportParameterListener& listener); | |
| 84 }; | 77 }; |
| OLD | NEW |