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

Unified Diff: services/ui/view_manager/view_tree_impl.cc

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.h ('k') | services/ui/view_manager/view_tree_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/view_tree_impl.cc
diff --git a/services/ui/view_manager/view_tree_impl.cc b/services/ui/view_manager/view_tree_impl.cc
index 892ec0abe3a8d83542965024666e03049c444ed1..9cdcca1b25a4e856266150a4f0cd770c3798a4dd 100644
--- a/services/ui/view_manager/view_tree_impl.cc
+++ b/services/ui/view_manager/view_tree_impl.cc
@@ -24,6 +24,12 @@ void ViewTreeImpl::GetServiceProvider(
service_provider_bindings_.AddBinding(this, service_provider.Pass());
}
+void ViewTreeImpl::SetRenderer(
+ mojo::InterfaceHandle<mojo::gfx::composition::Renderer> renderer) {
+ registry_->SetRenderer(
+ state_, mojo::gfx::composition::RendererPtr::Create(std::move(renderer)));
+}
+
void ViewTreeImpl::RequestLayout() {
registry_->RequestLayout(state_);
}
« no previous file with comments | « services/ui/view_manager/view_tree_impl.h ('k') | services/ui/view_manager/view_tree_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698