Bug 1014961 - IOSurfs are always RGB not BGR. - r=mattwoodrow

This commit is contained in:
Jeff Gilbert 2014-05-22 16:44:15 -07:00
parent f398ab2371
commit 86a855392e

View File

@ -48,7 +48,8 @@ MacIOSurfaceTextureHostOGL::GetFormat() const {
if (!mSurface) {
return gfx::SurfaceFormat::UNKNOWN;
}
return mSurface->HasAlpha() ? gfx::SurfaceFormat::R8G8B8A8 : gfx::SurfaceFormat::B8G8R8X8;
return mSurface->HasAlpha() ? gfx::SurfaceFormat::R8G8B8A8
: gfx::SurfaceFormat::R8G8B8X8;
}
gfx::IntSize
@ -80,7 +81,8 @@ MacIOSurfaceTextureSourceOGL::GetSize() const
gfx::SurfaceFormat
MacIOSurfaceTextureSourceOGL::GetFormat() const
{
return mSurface->HasAlpha() ? gfx::SurfaceFormat::R8G8B8A8 : gfx::SurfaceFormat::B8G8R8X8;
return mSurface->HasAlpha() ? gfx::SurfaceFormat::R8G8B8A8
: gfx::SurfaceFormat::R8G8B8X8;
}
void