mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 959154 - Part 2: Remove local ImageFormatForSurfaceFormat. r=nical
This commit is contained in:
parent
cd99ce45cf
commit
414a0a17f0
@ -27,23 +27,6 @@ DataOffset(const nsIntPoint &aPoint, int32_t aStride, SurfaceFormat aFormat)
|
||||
return data;
|
||||
}
|
||||
|
||||
static gfxImageFormat
|
||||
ImageFormatForSurfaceFormat(gfx::SurfaceFormat aFormat)
|
||||
{
|
||||
switch (aFormat) {
|
||||
case gfx::SurfaceFormat::B8G8R8A8:
|
||||
return gfxImageFormat::ARGB32;
|
||||
case gfx::SurfaceFormat::B8G8R8X8:
|
||||
return gfxImageFormat::RGB24;
|
||||
case gfx::SurfaceFormat::R5G6B5:
|
||||
return gfxImageFormat::RGB16_565;
|
||||
case gfx::SurfaceFormat::A8:
|
||||
return gfxImageFormat::A8;
|
||||
default:
|
||||
return gfxImageFormat::Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
static GLint GetAddressAlignment(ptrdiff_t aAddress)
|
||||
{
|
||||
if (!(aAddress & 0x7)) {
|
||||
|
Loading…
Reference in New Issue
Block a user