[Screen Ruler] Better error handling and reuse D3D device (#20223)

* [Screen Ruler] simplify lines calculation

* [Screen Ruler] Add inches and centimeters support

* [Chore] prefer x64 toolset to avoid hitting C1076

* [Screen Ruler] Allow making screenshots in non-continuous mode

* [Screen Ruler] Use single d3d device for all ops

* [Screen Ruler] remove gpu mutex and clean up screen capturing

* [Screen Ruler] handle and log DXGI initialization failure

* [Screen Ruler] Add unhandled exception handler

* [Screen Ruler] comment out Units of Measure setting

* [Screen Ruler] introduce a separate device dedicated for capturing
This commit is contained in:
Andrey Nekrasov
2022-09-05 15:39:56 +03:00
committed by GitHub
parent feead9c68b
commit 9d7c9c1746
40 changed files with 958 additions and 429 deletions

View File

@@ -346,7 +346,6 @@ CSIDL
csignal
cso
CSRW
cstddef
cstdint
cstdlib
cstring
@@ -402,6 +401,7 @@ DBLEPSILON
DCapture
DCBA
DCOM
dcommon
dcomp
dcompi
DComposition
@@ -490,7 +490,6 @@ dreamsofameaningfullife
drivedetectionwarning
dshow
dst
DState
DTo
dutil
DVASPECT
@@ -522,6 +521,7 @@ DWORDLONG
dworigin
dwrite
dxgi
dxgidebug
dxgiformat
dxguid
ecount
@@ -811,6 +811,7 @@ ICapture
icase
ICEBLUE
IClass
IClosable
ICollection
IColor
ICommand
@@ -881,7 +882,6 @@ IMAGERESIZERCONTEXTMENU
IMAGERESIZEREXT
imageresizerinput
imageresizersettings
TEXTEXTRACTOR
imagingdevices
IMain
IMarkdown
@@ -1278,6 +1278,7 @@ Moq
MOUSEACTIVATE
MOUSEHWHEEL
MOUSEINPUT
MOUSELEAVE
MOUSEMOVE
MOUSEWHEEL
MOVESIZEEND
@@ -1632,7 +1633,6 @@ ptd
PTOKEN
PToy
ptr
ptrdiff
ptstr
PVOID
pwa
@@ -1746,6 +1746,7 @@ RIGHTSCROLLBAR
riid
riverar
RKey
RLO
RMENU
RNumber
roadmap
@@ -2063,6 +2064,7 @@ testhost
testprocess
TEXCOORD
textblock
TEXTEXTRACTOR
TEXTINCLUDE
THH
THICKFRAME
@@ -2272,7 +2274,6 @@ wchar
WClass
wcout
wcscat
wcschr
wcscmp
wcscpy
wcslen