mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1416594 - Add SurfaceFormat::R8G8B8A8 handling to SurfaceFormatToImageFormat() r=nical
This commit is contained in:
parent
277dd46639
commit
03a781381b
@ -61,6 +61,7 @@ SurfaceFormatToImageFormat(gfx::SurfaceFormat aFormat) {
|
||||
switch (aFormat) {
|
||||
case gfx::SurfaceFormat::R8G8B8X8:
|
||||
// TODO: use RGBA + opaque flag
|
||||
case gfx::SurfaceFormat::R8G8B8A8:
|
||||
return Some(wr::ImageFormat::BGRA8);
|
||||
case gfx::SurfaceFormat::B8G8R8X8:
|
||||
// TODO: WebRender will have a BGRA + opaque flag for this but does not
|
||||
|
Loading…
Reference in New Issue
Block a user