OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
6 module mojo.gfx.composition; | 6 module mojo.gfx.composition; |
7 | 7 |
8 import "mojo/services/geometry/interfaces/geometry.mojom"; | 8 import "mojo/services/geometry/interfaces/geometry.mojom"; |
9 import "mojo/services/gpu/interfaces/context_provider.mojom"; | 9 import "mojo/services/gfx/composition/interfaces/renderers.mojom"; |
10 import "mojo/services/gfx/composition/interfaces/scene_token.mojom"; | 10 import "mojo/services/gfx/composition/interfaces/scene_token.mojom"; |
11 import "mojo/services/gfx/composition/interfaces/scenes.mojom"; | 11 import "mojo/services/gfx/composition/interfaces/scenes.mojom"; |
12 import "mojo/services/gfx/composition/interfaces/renderers.mojom"; | 12 import "mojo/services/gpu/interfaces/context_provider.mojom"; |
13 | 13 |
14 // Maximum length for a scene or renderer label. | 14 // Maximum length for a scene or renderer label. |
15 const uint32 kLabelMaxLength = 32; | 15 const uint32 kLabelMaxLength = 32; |
16 | 16 |
17 // The compositor manages scenes and scene graph renderers. | 17 // The compositor manages scenes and scene graph renderers. |
18 // | 18 // |
19 // Applications create scenes to describe graphical content they would like | 19 // Applications create scenes to describe graphical content they would like |
20 // to render, including references to other scenes they would like to compose. | 20 // to render, including references to other scenes they would like to compose. |
21 // | 21 // |
22 // The system creates a renderer to bind a scene graph to a particular display. | 22 // The system creates a renderer to bind a scene graph to a particular display. |
(...skipping 23 matching lines...) Expand all Loading... |
46 // | 46 // |
47 // The |context_provider| provides the GL Context to which the content | 47 // The |context_provider| provides the GL Context to which the content |
48 // should be rendered. This will typically be a display. | 48 // should be rendered. This will typically be a display. |
49 // | 49 // |
50 // The |label| is an optional name to associate with the renderer for | 50 // The |label| is an optional name to associate with the renderer for |
51 // diagnostic purposes. The label will be truncated if it is longer | 51 // diagnostic purposes. The label will be truncated if it is longer |
52 // than |kLabelMaxLength|. | 52 // than |kLabelMaxLength|. |
53 // | 53 // |
54 // To destroy the renderer, simply close the |renderer| message pipe. | 54 // To destroy the renderer, simply close the |renderer| message pipe. |
55 CreateRenderer(mojo.ContextProvider context_provider, | 55 CreateRenderer(mojo.ContextProvider context_provider, |
56 Renderer& renderer, string? label); | 56 Renderer& renderer, |
| 57 string? label); |
57 }; | 58 }; |
OLD | NEW |