Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[macOS] macOS desktop should enable wide gamut when running with Impeller #164557

@jonahwilliams

Description

@jonahwilliams

From a cursory look at the code, all that needs to change is FlutterSurface.mm:

pixelFormat = kCVPixelFormatType_40ARGBLEWideGamut;
bytesPerElement = 8;

and the texture format change to MTLPixelFormatBGRA10_XR

On macOS I think detecting support is trickier, but we can use it as long as the device is apple series 3 or higher.

FYI @knopp

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityteam-macosOwned by the macOS platform teamtriaged-macosTriaged by the macOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions