Bug 1258094 - Use SurfaceFormat::B8G8R8A8 as back buffer surface r=jrmuizel
authorSotaro Ikeda <sotaro.ikeda.g@gmail.com>
Tue, 22 Mar 2016 17:30:52 -0700
changeset 289903 b68566e511b75a9a5b8a1f1cb462bd5109219c2e
parent 289902 43d66eea833b04be65a145051c708dd5c6587a80
child 289904 f45dafb23887313df248d5771d61c00cef724e7f
push id74031
push usersikeda@mozilla.com
push dateWed, 23 Mar 2016 00:31:08 +0000
treeherdermozilla-inbound@b68566e511b7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1258094
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1258094 - Use SurfaceFormat::B8G8R8A8 as back buffer surface r=jrmuizel
widget/nsBaseWidget.cpp
--- a/widget/nsBaseWidget.cpp
+++ b/widget/nsBaseWidget.cpp
@@ -1360,17 +1360,17 @@ already_AddRefed<mozilla::gfx::DrawTarge
   return nullptr;
 }
 
 already_AddRefed<mozilla::gfx::DrawTarget>
 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);
 }
 
 //-------------------------------------------------------------------------
 //
 // Destroy the window
 //
 //-------------------------------------------------------------------------