Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Match Windows logic for picking RGB/BGR textures. #55121

Merged
merged 4 commits into from
Sep 16, 2024

Conversation

robert-ancell
Copy link
Contributor

The existing code had a lot of additional checks that didn't seem to need to be there.

BGR could be passed back to Flutter, but this was never used in creating the texture.

There has been a report of a Flutter app on Linux with swapped red and blue color channels, so this seems like it is likely not working on some drivers.

The original logic was introduced in f104bad

The existing code had a lot of additional checks that didn't seem to need to be there.

BGR could be passed back to Flutter, but this was never used in creating the texture.

There has been a report of a Flutter app on Linux with swapped red and blue
color channels, so this seems like it is likely not working on some drivers.

The original logic was introduced in f104bad
@loic-sharma
Copy link
Member

Here's the corresponding Windows change: #54329

Copy link
Member

@loic-sharma loic-sharma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for updating this!

@robert-ancell robert-ancell merged commit 9aaea5a into flutter:main Sep 16, 2024
27 checks passed
@robert-ancell robert-ancell deleted the linux-texture-bgra branch September 16, 2024 00:18
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 16, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 16, 2024
…155232)

flutter/engine@fe22a19...9aaea5a

2024-09-16 robert.ancell@canonical.com Match Windows logic for picking RGB/BGR textures. (flutter/engine#55121)

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 aaclarke@google.com,rmistry@google.com,zra@google.com 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants