From 03a781381b46948b8b917dce8986508b964e6f7d Mon Sep 17 00:00:00 2001 From: sotaro Date: Wed, 15 Nov 2017 07:15:11 +0900 Subject: [PATCH] Bug 1416594 - Add SurfaceFormat::R8G8B8A8 handling to SurfaceFormatToImageFormat() r=nical --- gfx/webrender_bindings/WebRenderTypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/webrender_bindings/WebRenderTypes.h b/gfx/webrender_bindings/WebRenderTypes.h index 51390745c7ca..0be372b76045 100644 --- a/gfx/webrender_bindings/WebRenderTypes.h +++ b/gfx/webrender_bindings/WebRenderTypes.h @@ -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