Uh oh!
There was an error while loading. Please reload this page.
[CP][Impeller] ensure that OpenGL "flipped" textures do not leak via texture readback. (#163501) - #163667
Merged
auto-submit[bot] merged 6 commits intoFeb 26, 2025
Conversation
…ure readback. (flutter#163501) Fixesflutter#163315Fixesflutter#163521Fixesflutter#142641 OpenGL has an inverted coordinate system (bottom left is zero) compared to Metal/Vulkan (top left is zero). We handle this by rendering things upside down on OpenGL. Unfortunately this can leak out of the renderer via readback (toImage), so we need to make sure to undo the inversion. This is not performed for the "TextureCoordinateSystem::kUploadFromHost" state as that indicates the texture is already "right side up".
jtmcdole
approved these changes
Feb 19, 2025
jonahwilliams
commented
Feb 20, 2025
ContributorAuthor
Ah I used an API that is not in the release branch. Fixing. |
justinmc
commented
Feb 25, 2025
Contributor
The presubmits were fixed in #164050. Pushing a merge commit to see if this PR will pass now. |
engine-flutter-autoroll added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Mar 6, 2025
…eak via texture readback. (#163501) (flutter/flutter#163667)
engine-flutter-autoroll added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Mar 7, 2025
…eak via texture readback. (#163501) (flutter/flutter#163667)
9 tasks
Fintasys pushed a commit
to Fintasys/flutter
that referenced
this pull request
May 14, 2025
…texture readback. (flutter#163501) (flutter#163667) Fixesflutter#163315Fixesflutter#163521Fixesflutter#142641 OpenGL has an inverted coordinate system (bottom left is zero) compared to Metal/Vulkan (top left is zero). We handle this by rendering things upside down on OpenGL. Unfortunately this can leak out of the renderer via readback (toImage), so we need to make sure to undo the inversion. This is not performed for the "TextureCoordinateSystem::kUploadFromHost" state as that indicates the texture is already "right side up".
This file contains hidden or 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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes#163315Fixes#163521Fixes#142641
OpenGL has an inverted coordinate system (bottom left is zero) compared to Metal/Vulkan (top left is zero). We handle this by rendering things upside down on OpenGL. Unfortunately this can leak out of the renderer via readback (toImage), so we need to make sure to undo the inversion.
This is not performed for the "TextureCoordinateSystem::kUploadFromHost" state as that indicates the texture is already "right side up".