Bug 1260885 - Make SurfaceFormat::R5G6B5_UINT16 properly round-trip through SourceSurfaceCairo. r?lsalzman
MozReview-Commit-ID: KvuUzzGQjuQ
--- a/gfx/2d/SourceSurfaceCairo.cpp
+++ b/gfx/2d/SourceSurfaceCairo.cpp
@@ -17,16 +17,18 @@ static SurfaceFormat
CairoFormatToSurfaceFormat(cairo_format_t format)
{
switch (format)
{
case CAIRO_FORMAT_ARGB32:
return SurfaceFormat::B8G8R8A8;
case CAIRO_FORMAT_RGB24:
return SurfaceFormat::B8G8R8X8;
+ case CAIRO_FORMAT_RGB16_565:
+ return SurfaceFormat::R5G6B5_UINT16;
case CAIRO_FORMAT_A8:
return SurfaceFormat::A8;
default:
return SurfaceFormat::B8G8R8A8;
}
}
SourceSurfaceCairo::SourceSurfaceCairo(cairo_surface_t* aSurface,