зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1258094 - Use SurfaceFormat::B8G8R8A8 as back buffer surface r=jrmuizel
This commit is contained in:
Родитель
aec687f13d
Коммит
a8248d2037
|
@ -1365,7 +1365,7 @@ nsBaseWidget::CreateBackBufferDrawTarget(mozilla::gfx::DrawTarget* aScreenTarget
|
|||
const LayoutDeviceIntRect& aRect)
|
||||
{
|
||||
MOZ_ASSERT(aScreenTarget);
|
||||
gfx::SurfaceFormat format = aScreenTarget->GetFormat() == gfx::SurfaceFormat::B8G8R8X8 ? gfx::SurfaceFormat::B8G8R8X8 : gfx::SurfaceFormat::B8G8R8A8;
|
||||
gfx::SurfaceFormat format = gfx::SurfaceFormat::B8G8R8A8;
|
||||
return aScreenTarget->CreateSimilarDrawTarget(aRect.ToUnknownRect().Size(), format);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче