-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
[CP][Impeller] ensure that OpenGL "flipped" textures do not leak via texture readback. (#163501) #163667
Merged
auto-submit
merged 6 commits into
flutter:flutter-3.29-candidate.0
from
jonahwilliams:flip_texture_cp
Feb 26, 2025
Merged
[CP][Impeller] ensure that OpenGL "flipped" textures do not leak via texture readback. (#163501) #163667
auto-submit
merged 6 commits into
flutter:flutter-3.29-candidate.0
from
jonahwilliams:flip_texture_cp
Feb 26, 2025
+122
−20
Conversation
This file contains 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
…ure readback. (flutter#163501) Fixes flutter#163315 Fixes flutter#163521 Fixes flutter#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
Ah I used an API that is not in the release branch. Fixing. |
The presubmits were fixed in #164050. Pushing a merge commit to see if this PR will pass now. |
a8a9ded
into
flutter:flutter-3.29-candidate.0
156 checks passed
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
Mar 6, 2025
… leak 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
… leak via texture readback. (#163501) (flutter/flutter#163667)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
autosubmit
Merge PR when tree becomes green via auto submit App
cp: review
Cherry-picks in the review queue
cp: stable
cherry pick this pull request to stable release candidate branch
e: impeller
Impeller rendering backend issues and features requests
engine
flutter/engine repository. See also e: labels.
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 #163315 Fixes #163521 Fixes #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".