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

Unified Diff: services/ui/view_manager/view_tree_state.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/view_manager/view_tree_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/view_tree_state.h
diff --git a/services/ui/view_manager/view_tree_state.h b/services/ui/view_manager/view_tree_state.h
index 435efd1544bca990842de78f4496da6e4435bff8..b270721ca979070c06da228c07fe7c08c2f55380 100644
--- a/services/ui/view_manager/view_tree_state.h
+++ b/services/ui/view_manager/view_tree_state.h
@@ -50,6 +50,12 @@ class ViewTreeState {
return view_tree_listener_.get();
}
+ // The view tree's renderer.
+ mojo::gfx::composition::Renderer* renderer() const { return renderer_.get(); }
+ void set_renderer(mojo::gfx::composition::RendererPtr renderer) {
+ renderer_ = renderer.Pass();
+ }
+
// Gets the root of the view tree, or null if there is no root.
ViewStub* root() const { return root_.get(); }
@@ -82,6 +88,8 @@ class ViewTreeState {
std::unique_ptr<ViewTreeImpl> impl_;
mojo::Binding<mojo::ui::ViewTree> view_tree_binding_;
+ mojo::gfx::composition::RendererPtr renderer_;
+
std::unique_ptr<ViewStub> root_;
bool layout_request_pending_ = false;
bool layout_request_issued_ = false;
« no previous file with comments | « services/ui/view_manager/view_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698