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 // Primitives express the geometry of the scene, such as quads and references | 5 // Primitives express the geometry of the scene, such as quads and references |
6 // to embedded scenes. Primitives are arranged hierarchically as nodes, | 6 // to embedded scenes. Primitives are arranged hierarchically as nodes, |
7 // each with an associated transformation matrix. | 7 // each with an associated transformation matrix. |
8 | 8 |
9 [DartPackage="mojo_services"] | 9 [DartPackage="mojo_services"] |
10 module mojo.gfx.composition; | 10 module mojo.gfx.composition; |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // It is an error to specify a resource id that does not refer to a scene | 244 // It is an error to specify a resource id that does not refer to a scene |
245 // resource; the compositor will close the connection when the scene | 245 // resource; the compositor will close the connection when the scene |
246 // is published. | 246 // is published. |
247 // If a cycle is introduced then the scene will be substituted with | 247 // If a cycle is introduced then the scene will be substituted with |
248 // placeholder content by the compositor. | 248 // placeholder content by the compositor. |
249 uint32 scene_resource_id; | 249 uint32 scene_resource_id; |
250 | 250 |
251 // The version of the scene that we would like to reference. | 251 // The version of the scene that we would like to reference. |
252 // Use |kSceneVersionNone| to request the most recently published | 252 // Use |kSceneVersionNone| to request the most recently published |
253 // version of the scene if synchronization is unimportant. | 253 // version of the scene if synchronization is unimportant. |
254 uint32 scene_version = 0; // kSceneVersionNone | 254 uint32 scene_version = 0; // kSceneVersionNone |
255 }; | 255 }; |
256 | 256 |
257 // Draws a layer. | 257 // Draws a layer. |
258 // | 258 // |
259 // Conceptually, this operation has the effect of drawing the children of | 259 // Conceptually, this operation has the effect of drawing the children of |
260 // the node to a temporary buffer of the specified size which is then | 260 // the node to a temporary buffer of the specified size which is then |
261 // composited in place like an image. This is useful for ensuring | 261 // composited in place like an image. This is useful for ensuring |
262 // correct blending of layered content. | 262 // correct blending of layered content. |
263 struct LayerNodeOp { | 263 struct LayerNodeOp { |
264 // The size of the layer to create. | 264 // The size of the layer to create. |
(...skipping 15 matching lines...) Expand all Loading... |
280 }; | 280 }; |
281 | 281 |
282 // Specifies how blending should take place. | 282 // Specifies how blending should take place. |
283 struct Blend { | 283 struct Blend { |
284 // The opacity for composition in a range from 0 (fully transparent) | 284 // The opacity for composition in a range from 0 (fully transparent) |
285 // to 255 (fully opaque). | 285 // to 255 (fully opaque). |
286 uint8 alpha = 255; | 286 uint8 alpha = 255; |
287 | 287 |
288 // TODO(jeffbrown): Blend modes and texture filtering. | 288 // TODO(jeffbrown): Blend modes and texture filtering. |
289 }; | 289 }; |
OLD | NEW |