| 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 [DartUriBase="mojo/services/surfaces/public/interfaces"] |
| 5 module mojo; | 6 module mojo; |
| 6 | 7 |
| 7 import "geometry/public/interfaces/geometry.mojom"; | 8 import "geometry/public/interfaces/geometry.mojom"; |
| 8 import "surfaces/public/interfaces/quads.mojom"; | 9 import "surfaces/public/interfaces/quads.mojom"; |
| 9 import "surfaces/public/interfaces/surface_id.mojom"; | 10 import "surfaces/public/interfaces/surface_id.mojom"; |
| 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, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // identifier. The caller can also produce a fully qualified surface id that | 69 // identifier. The caller can also produce a fully qualified surface id that |
| 69 // can be embedded in frames produces by different connections. | 70 // can be embedded in frames produces by different connections. |
| 70 CreateSurface(uint32 id_local); | 71 CreateSurface(uint32 id_local); |
| 71 | 72 |
| 72 // After the submitted frame is drawn for the first time, the surface will | 73 // After the submitted frame is drawn for the first time, the surface will |
| 73 // respond to the SubmitFrame message. Clients should use this acknowledgement | 74 // respond to the SubmitFrame message. Clients should use this acknowledgement |
| 74 // to ratelimit frame submissions. | 75 // to ratelimit frame submissions. |
| 75 SubmitFrame(uint32 id_local, Frame frame) => (); | 76 SubmitFrame(uint32 id_local, Frame frame) => (); |
| 76 DestroySurface(uint32 id_local); | 77 DestroySurface(uint32 id_local); |
| 77 }; | 78 }; |
| OLD | NEW |