Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[web] Render PlatformViews with SLOT tags. #25747
[web] Render PlatformViews with SLOT tags. #25747
Changes from all commits
6ea7e48
61ed861
5e1720d
7b76403
0d11719
b5b4ec8
149debf
a1de790
6daf5c6
e51ad1d
bb97136
1ade522
9e9820d
172fddc
da4317e
6412db7
6a9258a
0d41b5c
a57a5c3
63370d5
bb68314
1203eb3
15bc192
8c5a13a
3c55ce8
38d3191
6397962
314e246
518b2e2
ea60e8c
d060e90
4bca48c
3d819ca
4959eea
8d0bac1
1697d17
f374b1f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this new code will actually dispose of "disposed" views. In the old code we kept a list of views which were disposed, and then later we disposed them. In this code we are only disposing views which are trying to be composited into the scene but were never registered. In the old code we would delete disposed views whether or not they are being actively composited this frame.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, the thing is that in the old code this was coupled with the creation/destruction of the actual content of the platform view in the DOM.
Now, slots are "lightweight" so they can be destroyed/recreated per frame without impacting performance, and the actual platform view (with the heavy iframe) will still get destroyed when the framework signals a disposal.
Can you think of some example where this code might be leaking unused views?