Bug 1298403. Reorder fields to avoid clang-cl warning.
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Mon, 19 Sep 2016 10:03:12 -0400
changeset 314400 857e5699df7baaabeceafd3601ff19104507cfac
parent 314399 951db29640de5d15a089e71116ccf75d0c36889a
child 314401 97d4dcf688a04822363f166aa415f08f0d937586
push id20571
push userkwierso@gmail.com
push dateMon, 19 Sep 2016 22:56:59 +0000
treeherderfx-team@671c2af548b2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1298403
milestone51.0a1
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);