forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fuchsia] Replace deprecated AddLocalChild (flutter#38788)
`AddLocalChild(LocalComponent*)` is deprecated. It was replaced by: `AddLocalChild(LocalComponentFactory)`, which is a type alias for a lambda that returns a `std::unique_ptr<LocalComponentImpl>`. This change addresses problems that arised due to object lifetime management of the components, and allows RealmBuilder to model the component lifecycle of local components in a way that's more consistent with other components. The RealmBuilder-built `Realm` now owns the lifetime of the local components, instead of the client, and those objects are valid until the `Realm` is destroyed. Bug: fxbug.dev/109804
- Loading branch information
Showing
3 changed files
with
50 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters