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

Unified Diff: services/ui/view_manager/view_registry.h

Issue 1775143004: Mozart: Directly associate the renderer with the view tree. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-1
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/launcher/launcher_view_tree.cc ('k') | services/ui/view_manager/view_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/view_registry.h
diff --git a/services/ui/view_manager/view_registry.h b/services/ui/view_manager/view_registry.h
index ad293c110e4205e6e047a3178d9c5bc734302525..d2bcb66c5de3146fdf6a00123d5a412ccb046cef 100644
--- a/services/ui/view_manager/view_registry.h
+++ b/services/ui/view_manager/view_registry.h
@@ -100,6 +100,11 @@ class ViewRegistry : public mojo::ui::ViewInspector {
// VIEW TREE REQUESTS
+ // Sets the view tree's renderer.
+ // Destroys |tree_state| if an error occurs.
+ void SetRenderer(ViewTreeState* tree_state,
+ mojo::gfx::composition::RendererPtr renderer);
+
// Requests layout.
// Destroys |tree_state| if an error occurs.
void RequestLayout(ViewTreeState* tree_state);
@@ -173,10 +178,16 @@ class ViewRegistry : public mojo::ui::ViewInspector {
void OnSceneCreated(base::WeakPtr<ViewState> view_state_weak,
mojo::gfx::composition::SceneTokenPtr scene_token);
+ // RENDERING
+
+ void UpdateViewTreeRootScene(ViewTreeState* view_tree);
+ void OnRendererDied(ViewTreeState* view_tree);
+
// SIGNALING
void SendChildUnavailable(ViewState* parent_state, uint32_t child_key);
void SendRootUnavailable(ViewTreeState* tree_state, uint32_t root_key);
+ void SendRendererDied(ViewTreeState* tree_state);
bool IsViewStateRegisteredDebug(ViewState* view_state) {
return view_state && FindView(view_state->view_token()->value);
« no previous file with comments | « services/ui/launcher/launcher_view_tree.cc ('k') | services/ui/view_manager/view_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698