Closed Bug 1562817 Opened 5 years ago Closed 5 years ago

Use RGBA instead of BGRA in WebRender

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1548339

People

(Reporter: jgilbert, Unassigned)

References

Details

GL generally really doesn't like BGRA, and it's not as important as it was in the D3D9 days.

As I understand it, our main blocker here is mostly getting RGBA out of the decoders instead of BGRA, which seems actionable.

Using RGBA instead of BGRA cure a lot of ongoing pains in handling GL and GLES's spotty and poor BGRA support.

See Also: → 1474281
Flags: needinfo?(dmalyshau)

WebRender still have to support both, it's more of a question which one to prefer.
The work has been going in 1548339 to address this.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(dmalyshau)
Resolution: --- → DUPLICATE

(In reply to Dzmitry Malyshau [:kvark] from comment #1)

WebRender still have to support both, it's more of a question which one to prefer.
The work has been going in 1548339 to address this.

*** This bug has been marked as a duplicate of bug 1548339 ***

Can you elaborate on why both need to be supported?
For example, WebGL uses only RGBA.

Flags: needinfo?(dmalyshau)

Consulted with :jrmuizel once more, we have currently two sources of BGRA data: Skia and ImageLib. The latter can be fixed, at least :aosmond have a plan to do so. It's not entirely clear if the former is easy to fix.

Flags: needinfo?(dmalyshau)
You need to log in before you can comment on or make changes to this bug.