-
Notifications
You must be signed in to change notification settings - Fork 6k
[Linux][FlView] fix rendering on startup when shown after plugin registration #38982
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
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.
LGTM
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.
Thanks @jpnurmi !
…119287) * 8ca3b2b72 Roll Fuchsia Mac SDK from KLzrg8eFD9m5J9xa-... to MyL3JcOBni9CTx9wz... (flutter/engine#39171) * d17004dd9 [Linux][FlView] fix rendering on startup when shown after plugin registration (flutter/engine#38982)
This PR contains the engine-side changes required for changing the Linux app template to show the window after registering plugins (flutter/flutter#118269).
Currently,
FlView
assumes that it gets realized before its size gets allocated. If we change the order in the app template, the view gets added to a layout first and then realized. Make sure to callhandle_geometry_changed()
from both and check the pre-conditions forfl_renderer_wait_for_frame()
to ensure that the first frame is rendered regardless of the order ofsize-allocate
andrealize
.This makes it possible to change my_application.cc as follows:
Pre-launch Checklist
///
).