From a8248d20378084d2a9655749953cd5e65c8ad69b Mon Sep 17 00:00:00 2001 From: Sotaro Ikeda Date: Tue, 22 Mar 2016 17:30:52 -0700 Subject: [PATCH] Bug 1258094 - Use SurfaceFormat::B8G8R8A8 as back buffer surface r=jrmuizel --- widget/nsBaseWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/nsBaseWidget.cpp b/widget/nsBaseWidget.cpp index 252f4aa06271..8f2b8b7de61a 100644 --- a/widget/nsBaseWidget.cpp +++ b/widget/nsBaseWidget.cpp @@ -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); }