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

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

Issue 1749063002: Mozart: Improve internal scene graph representation. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-0
Patch Set: avoid unnecessary hashtable lookups 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
« no previous file with comments | « mojo/services/gfx/composition/interfaces/nodes.mojom ('k') | services/gfx/compositor/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo.gfx.composition; 6 module mojo.gfx.composition;
7 7
8 import "mojo/services/gfx/composition/interfaces/nodes.mojom"; 8 import "mojo/services/gfx/composition/interfaces/nodes.mojom";
9 import "mojo/services/gfx/composition/interfaces/resources.mojom"; 9 import "mojo/services/gfx/composition/interfaces/resources.mojom";
10 import "mojo/services/gfx/composition/interfaces/scene_token.mojom"; 10 import "mojo/services/gfx/composition/interfaces/scene_token.mojom";
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // All pending incremental updates are applied atomically when the scene 144 // All pending incremental updates are applied atomically when the scene
145 // is published and the new state is labeled with the version indicated 145 // is published and the new state is labeled with the version indicated
146 // in the associated metadata. 146 // in the associated metadata.
147 // 147 //
148 // The |metadata| describes how the published scene should be presented. 148 // The |metadata| describes how the published scene should be presented.
149 // If null, this method behaves as if a |SceneMetadata| object initialized 149 // If null, this method behaves as if a |SceneMetadata| object initialized
150 // with default values had been supplied. 150 // with default values had been supplied.
151 // 151 //
152 // Publishing a scene graph applies all pending updates. It is an error 152 // Publishing a scene graph applies all pending updates. It is an error
153 // to publish updates which cause the scene state to become inconsistent, 153 // to publish updates which cause the scene state to become inconsistent,
154 // such as by having nodes which refer to non-existent resources; the 154 // such as by having nodes which refer to non-existent resources or
155 // connection will be closed. 155 // introducing cycles in the scene's nodes; the connection will be closed.
156 Publish(SceneMetadata? metadata); 156 Publish(SceneMetadata? metadata);
157 157
158 // Gets a scheduler for scheduling upcoming scene operations. 158 // Gets a scheduler for scheduling upcoming scene operations.
159 GetScheduler(SceneScheduler& scheduler); 159 GetScheduler(SceneScheduler& scheduler);
160 }; 160 };
161 161
162 // An interface applications may implement to receive events from a scene. 162 // An interface applications may implement to receive events from a scene.
163 interface SceneListener { 163 interface SceneListener {
164 // Called when a resource has become unavailable. 164 // Called when a resource has become unavailable.
165 // 165 //
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // scene are to be shown on the display output assuming everything is 215 // scene are to be shown on the display output assuming everything is
216 // fully rendered and submitted by the appropriate deadline. 216 // fully rendered and submitted by the appropriate deadline.
217 // 217 //
218 // Expressed in microseconds in the |MojoTimeTicks| timebase. 218 // Expressed in microseconds in the |MojoTimeTicks| timebase.
219 // 219 //
220 // A value of 0 means "as soon as possible". 220 // A value of 0 means "as soon as possible".
221 // 221 //
222 // See also: |FrameInfo.presentation_time|. 222 // See also: |FrameInfo.presentation_time|.
223 int64 presentation_time = 0; 223 int64 presentation_time = 0;
224 }; 224 };
OLDNEW
« no previous file with comments | « mojo/services/gfx/composition/interfaces/nodes.mojom ('k') | services/gfx/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698