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 289948 b68566e511b75a9a5b8a1f1cb462bd5109219c2e
parent 289947 43d66eea833b04be65a145051c708dd5c6587a80
child 289949 f45dafb23887313df248d5771d61c00cef724e7f
push id18337
push usercbook@mozilla.com
push dateWed, 23 Mar 2016 15:30:25 +0000
treeherderfx-team@67ac681f7e53 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1258094
milestone48.0a1
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
 //
 //-------------------------------------------------------------------------