Autogenerated with:
cp dom/.clang-format gfx/ && mach format gfx/**.{cpp,h,mm}
Manual changes:
* OSVRSession headers are not system headers and they are not
standalone / rely on stdint, so tweaked to preserve previous
ordering.
* Missing include in GLDefs.h
* Missing include in gfxOTSUtils.
* Need to keep the windows header order in DCLayerTree.
* missing hb_font include in MockScaledFont.h
Differential Revision: https://phabricator.services.mozilla.com/D311695
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
#include "D3DMessageUtils.h"
|
|
|
|
#include "ipc/IPCMessageUtils.h"
|
|
#if defined(XP_WIN)
|
|
# include "gfxWindowsPlatform.h"
|
|
#endif
|
|
|
|
bool DxgiAdapterDesc::operator==(const DxgiAdapterDesc& aOther) const {
|
|
return memcmp(&aOther, this, sizeof(*this)) == 0;
|
|
}
|
|
|
|
#if defined(XP_WIN)
|
|
static_assert(sizeof(DxgiAdapterDesc) == sizeof(DXGI_ADAPTER_DESC),
|
|
"DXGI_ADAPTER_DESC doe snot match DxgiAdapterDesc");
|
|
|
|
const DxgiAdapterDesc& DxgiAdapterDesc::From(const DXGI_ADAPTER_DESC& aDesc) {
|
|
return reinterpret_cast<const DxgiAdapterDesc&>(aDesc);
|
|
}
|
|
|
|
const DXGI_ADAPTER_DESC& DxgiAdapterDesc::ToDesc() const {
|
|
return reinterpret_cast<const DXGI_ADAPTER_DESC&>(*this);
|
|
}
|
|
#endif
|
|
|
|
namespace IPC {
|
|
|
|
#if defined(XP_WIN)
|
|
IMPLEMENT_IPC_SERIALIZER_WITH_FIELDS(DxgiAdapterDesc, Description, VendorId,
|
|
DeviceId, SubSysId, Revision,
|
|
DedicatedVideoMemory,
|
|
DedicatedSystemMemory, SharedSystemMemory,
|
|
AdapterLuid.LowPart, AdapterLuid.HighPart);
|
|
#endif
|
|
|
|
} // namespace IPC
|