fix video(texture) with opacity can not play issue#23793
fix video(texture) with opacity can not play issue#23793fluttergithubbot merged 1 commit intoflutter:masterfrom
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. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
Can reproduce this issue use gallery demo in https://github.com/zljj0818/flutter/tree/master-opacity-video-issue. |
|
Hi, how can i retrigger the checks? |
aaf2b61 to
ba5fbd3
Compare
|
@chinmaygarde All checks passed, please review PR again |
|
Is there a bug here? Look at the way the has_platform flag is maintained in ContainerLayer::PrerollChildren and compare to how the has_texture flag is managed. There are some missing steps that would mean that any child that has a texture layer would set the flag for siblings and potentially cousins. The flag in the context needs to be reset on every child that is processed, just as the platform flag is reset. |

If video is child of Opacity widget, it cannot play, for it generate layer cache. So ConainerLayer should not generate layer cache if has texture layer, just like PlatformViewLayer.
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.