Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: mojo/services/gfx/composition/interfaces/nodes.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 which is then composited in place like an 260 // the node to a temporary buffer which is then composited in place like an
261 // image. This is useful for ensuring correct blending of layered content. 261 // image. This is useful for ensuring correct blending of layered content.
262 struct LayerNodeOp { 262 struct LayerNodeOp {
263 // The region of the node's content space to render to a layer. 263 // The region of the node's content space to render to a layer.
264 // Drawing within this region will be included in the layer. 264 // Drawing within this region will be included in the layer.
(...skipping 15 matching lines...) Expand all
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 };
OLDNEW
« no previous file with comments | « mojo/services/gfx/composition/interfaces/compositor.mojom ('k') | mojo/services/gfx/composition/interfaces/renderers.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698