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

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

Issue 1884833002: Mozart: Publish scene when scene token becomes available. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | 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_registry.cc
diff --git a/services/ui/view_manager/view_registry.cc b/services/ui/view_manager/view_registry.cc
index b52cb7180326d2ef7aa18d6906b1f1d965291a27..aee3a466f8af2e4d34c76db26fa1c66fc8244d83 100644
--- a/services/ui/view_manager/view_registry.cc
+++ b/services/ui/view_manager/view_registry.cc
@@ -245,6 +245,8 @@ void ViewRegistry::OnStubSceneTokenAvailable(
// Store the scene token.
DCHECK(view_stub->is_linked());
view_stub->SetStubSceneToken(scene_token.Clone());
+ if (view_stub->state())
+ PublishStubScene(view_stub->state());
// Send view info to the container including the scene token.
auto view_info = mojo::ui::ViewInfo::New();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698