зеркало из https://github.com/mozilla/gecko-dev.git
Bug 966679 - Use correct texture format when coverting YCbCr image data back into an image surface. r=nical
This commit is contained in:
Родитель
8c82bea32c
Коммит
28784a3a06
|
@ -253,7 +253,7 @@ TemporaryRef<DataSourceSurface>
|
|||
YCbCrImageDataDeserializer::ToDataSourceSurface()
|
||||
{
|
||||
RefPtr<DataSourceSurface> result =
|
||||
Factory::CreateDataSourceSurface(GetYSize(), gfx::SurfaceFormat::R8G8B8X8);
|
||||
Factory::CreateDataSourceSurface(GetYSize(), gfx::SurfaceFormat::B8G8R8X8);
|
||||
|
||||
DataSourceSurface::MappedSurface map;
|
||||
result->Map(DataSourceSurface::MapType::WRITE, &map);
|
||||
|
|
Загрузка…
Ссылка в новой задаче