Bug 1298403. Reorder fields to avoid clang-cl warning.
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Mon, 19 Sep 2016 10:03:12 -0400
changeset 314380 857e5699df7baaabeceafd3601ff19104507cfac
parent 314379 951db29640de5d15a089e71116ccf75d0c36889a
child 314381 97d4dcf688a04822363f166aa415f08f0d937586
push id81875
push userjmuizelaar@mozilla.com
push dateMon, 19 Sep 2016 14:05:10 +0000
treeherdermozilla-inbound@857e5699df7b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1298403
milestone51.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 1298403. Reorder fields to avoid clang-cl warning.
gfx/layers/d3d9/TextureD3D9.cpp
--- a/gfx/layers/d3d9/TextureD3D9.cpp
+++ b/gfx/layers/d3d9/TextureD3D9.cpp
@@ -735,20 +735,20 @@ D3D9TextureData::UpdateFromSurface(gfx::
   mD3D9Surface->UnlockRect();
 
   return true;
 }
 
 DXGID3D9TextureData::DXGID3D9TextureData(gfx::SurfaceFormat aFormat,
                                          IDirect3DTexture9* aTexture, HANDLE aHandle,
                                          IDirect3DDevice9* aDevice)
-: mFormat(aFormat)
+: mDevice(aDevice)
 , mTexture(aTexture)
+, mFormat(aFormat)
 , mHandle(aHandle)
-, mDevice(aDevice)
 {
   MOZ_COUNT_CTOR(DXGID3D9TextureData);
 }
 
 DXGID3D9TextureData::~DXGID3D9TextureData()
 {
   gfxWindowsPlatform::sD3D9SharedTextures -= mDesc.Width * mDesc.Height * 4;
   MOZ_COUNT_DTOR(DXGID3D9TextureData);