From 8ef486249be4eb90d57381c944dbca24ad79c466 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 29 Jan 2022 01:55:09 +0100 Subject: [PATCH] Remove leftover polyfills --- .../TerraFX.Interop.Windows.projitems | 3 - .../Windows/um/dwmapi/DWM_TIMING_INFO.cs | 124 ------------------ .../Windows/um/dwmapi/UNSIGNED_RATIO.cs | 18 --- .../Windows/um/dwmapi/Windows.cs | 14 -- 4 files changed, 159 deletions(-) delete mode 100644 src/TerraFX.Interop.Windows/Windows/um/dwmapi/DWM_TIMING_INFO.cs delete mode 100644 src/TerraFX.Interop.Windows/Windows/um/dwmapi/UNSIGNED_RATIO.cs delete mode 100644 src/TerraFX.Interop.Windows/Windows/um/dwmapi/Windows.cs diff --git a/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems b/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems index 0be125ea..72e40d22 100644 --- a/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems +++ b/src/TerraFX.Interop.Windows/TerraFX.Interop.Windows.projitems @@ -233,9 +233,6 @@ - - - diff --git a/src/TerraFX.Interop.Windows/Windows/um/dwmapi/DWM_TIMING_INFO.cs b/src/TerraFX.Interop.Windows/Windows/um/dwmapi/DWM_TIMING_INFO.cs deleted file mode 100644 index 99ddf4b4..00000000 --- a/src/TerraFX.Interop.Windows/Windows/um/dwmapi/DWM_TIMING_INFO.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -// Ported from um/dwmapi.h in the Windows SDK for Windows 10.0.22000.0 -// Original source is Copyright © Microsoft. All rights reserved. - -using System.Runtime.InteropServices; - -namespace TerraFX.Interop.Windows; - -[StructLayout(LayoutKind.Sequential, Pack = 1)] -internal partial struct DWM_TIMING_INFO -{ - [NativeTypeName("UINT32")] - public uint cbSize; - - public UNSIGNED_RATIO rateRefresh; - - [NativeTypeName("QPC_TIME")] - public ulong qpcRefreshPeriod; - - public UNSIGNED_RATIO rateCompose; - - [NativeTypeName("QPC_TIME")] - public ulong qpcVBlank; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cRefresh; - - public uint cDXRefresh; - - [NativeTypeName("QPC_TIME")] - public ulong qpcCompose; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFrame; - - public uint cDXPresent; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cRefreshFrame; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFrameSubmitted; - - public uint cDXPresentSubmitted; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFrameConfirmed; - - public uint cDXPresentConfirmed; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cRefreshConfirmed; - - public uint cDXRefreshConfirmed; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFramesLate; - - public uint cFramesOutstanding; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFrameDisplayed; - - [NativeTypeName("QPC_TIME")] - public ulong qpcFrameDisplayed; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cRefreshFrameDisplayed; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFrameComplete; - - [NativeTypeName("QPC_TIME")] - public ulong qpcFrameComplete; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFramePending; - - [NativeTypeName("QPC_TIME")] - public ulong qpcFramePending; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFramesDisplayed; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFramesComplete; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFramesPending; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFramesAvailable; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFramesDropped; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cFramesMissed; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cRefreshNextDisplayed; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cRefreshNextPresented; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cRefreshesDisplayed; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cRefreshesPresented; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cRefreshStarted; - - [NativeTypeName("ULONGLONG")] - public ulong cPixelsReceived; - - [NativeTypeName("ULONGLONG")] - public ulong cPixelsDrawn; - - [NativeTypeName("DWM_FRAME_COUNT")] - public ulong cBuffersEmpty; -} \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows/Windows/um/dwmapi/UNSIGNED_RATIO.cs b/src/TerraFX.Interop.Windows/Windows/um/dwmapi/UNSIGNED_RATIO.cs deleted file mode 100644 index 9d950570..00000000 --- a/src/TerraFX.Interop.Windows/Windows/um/dwmapi/UNSIGNED_RATIO.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -// Ported from um/dwmapi.h in the Windows SDK for Windows 10.0.22000.0 -// Original source is Copyright © Microsoft. All rights reserved. - -using System.Runtime.InteropServices; - -namespace TerraFX.Interop.Windows; - -[StructLayout(LayoutKind.Sequential, Pack = 1)] -internal partial struct UNSIGNED_RATIO -{ - [NativeTypeName("UINT32")] - public uint uiNumerator; - - [NativeTypeName("UINT32")] - public uint uiDenominator; -} \ No newline at end of file diff --git a/src/TerraFX.Interop.Windows/Windows/um/dwmapi/Windows.cs b/src/TerraFX.Interop.Windows/Windows/um/dwmapi/Windows.cs deleted file mode 100644 index ed27198f..00000000 --- a/src/TerraFX.Interop.Windows/Windows/um/dwmapi/Windows.cs +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -// Ported from um/dwmapi.h in the Windows SDK for Windows 10.0.22000.0 -// Original source is Copyright © Microsoft. All rights reserved. - -using System.Runtime.InteropServices; - -namespace TerraFX.Interop.Windows; - -internal static unsafe partial class Windows -{ - [DllImport("dwmapi", ExactSpelling = true)] - public static extern HRESULT DwmGetCompositionTimingInfo(HWND hwnd, DWM_TIMING_INFO* pTimingInfo); -} \ No newline at end of file