-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] fixed nested save layer mipmap counts #49778
Conversation
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.
This should fix the problem for backdrop filters, but we also need to incorporate paint filters that'll be applied to the layer #49607 (comment).
This is kind of annoying to do in EntityPass
since that's part of the paint state, so I'd just recommend going for the Aiks approach.
int32_t result = 1; | ||
for (auto& element : elements_) { | ||
if (auto subpass = std::get_if<std::unique_ptr<EntityPass>>(&element)) { | ||
result = std::max(result, subpass->get()->GetRequiredMipCount()); |
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.
If we're gonna keep GetRequiredMipCount
around, we should just rename it to GetBackdropFilterMipCount
since that's what it currently is.
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.
done
auto label is removed for flutter/engine/49778, due to - The status or check suite Linux linux_fuchsia has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…141498) flutter/engine@b06478b...a0ac66e 2024-01-13 [email protected] [Impeller] fixed nested save layer mipmap counts (flutter/engine#49778) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This resolves Jonah's feedback on #49607 and Brandons feedback on #49607 and #49778. This avoids the need to do a lookahead by storing the proper mip count value while building the drawing on the canvas. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
resolves #49607 (comment)
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.