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

Unified Diff: services/gfx/compositor/compositor_engine.h

Issue 1995873002: Mozart: Improve tracing and backpressure. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: services/gfx/compositor/compositor_engine.h
diff --git a/services/gfx/compositor/compositor_engine.h b/services/gfx/compositor/compositor_engine.h
index 05c3e8d16c6d95b20a99dd3f03acc722f5f82a74..e4abaada1bf99e53ab35f7e69ea49e57e3283ff9 100644
--- a/services/gfx/compositor/compositor_engine.h
+++ b/services/gfx/compositor/compositor_engine.h
@@ -89,12 +89,29 @@ class CompositorEngine {
SceneDef::Disposition PresentScene(SceneState* scene_state,
int64_t presentation_time);
+ // Starts the process of composing the contents of the renderer to
+ // produce a new frame.
+ void ComposeRenderer(RendererState* renderer_state,
+ const mojo::gfx::composition::FrameInfo& frame_info);
+
+ // Applies and validates scene updates from all scenes which are included
+ // in the renderer's scene graph.
void PresentRenderer(RendererState* renderer_state,
int64_t presentation_time);
- void SnapshotRenderer(RendererState* renderer_state,
- const mojo::gfx::composition::FrameInfo& frame_info);
+
+ // Resolves scene dependencies and captures a snapshot of the current
+ // state of the renderer's scene graph.
+ void SnapshotRenderer(RendererState* renderer_state);
void SnapshotRendererInner(RendererState* renderer_state,
std::ostream* block_log);
+
+ // Paints the renderer's current snapshot and submits a frame of content
+ // to the output for display.
+ void PaintRenderer(RendererState* renderer_state,
+ const mojo::gfx::composition::FrameInfo& frame_info,
+ int64_t composition_time);
+
+ // Schedules the next frame to be rendered, if needed.
void ScheduleFrameForRenderer(RendererState* renderer_state,
Scheduler::SchedulingMode scheduling_mode);

Powered by Google App Engine
This is Rietveld 408576698