Commit Graph

19 Commits (466e5f6a6d4f574369794fab8ae7a13d7aa52dfa)

Author SHA1 Message Date
jpark37 4d8d05756a libobs-winrt: Device loss crash prevention
Recovery could occur after captured window was closed.
2020-08-20 22:12:39 -07:00
Jim 9563c876ca
Merge pull request #3009 from jpark37/winrt-project-filter
libobs-winrt: Move project to core VS filter
2020-06-21 04:54:45 -07:00
jpark37 0d1f334591 libobs-winrt: Require Windows 10 SDK 19041
This will prevent compiling without WGC cursor toggle support.
2020-06-03 08:00:44 -07:00
jpark37 6d60c5f954 libobs-winrt: Move project to core VS filter
This module houses more WinRT functionality than just window capture.
2020-05-30 21:17:12 -07:00
Jim dedc0c01d5
Merge pull request #2964 from jpark37/winrt-dispatcher
Set up dispatcher queue for WGC stability
2020-05-21 17:31:30 -07:00
Jim c5187aef16
Merge pull request #2908 from jpark37/wgc-minimize
Fix WGC minimize handling
2020-05-21 17:29:04 -07:00
jpark37 49bc89f2b2 libobs-winrt: Add dispatcher queue API
Suspected necessary for WGC stability.
2020-05-21 09:25:50 -07:00
jpark37 a4c9554739 libobs-winrt: Fix WGC minimize handling
Illegal CopySubresourceRegion parameters were sometimes computed when
minimizing and restoring WGC window captures, leading to device loss.

Add robust safeties to ensure that doesn't happen.
2020-05-14 08:28:33 -07:00
jp9000 7993179466 cmake: Add cmake folders 2020-05-13 06:52:37 -07:00
jpark37 097ea77488 libobs-winrt: win-capture: Detect GraphicsCaptureItem closure
Make WGC window capture recover from GraphicsCaptureItem closure, which
can occur when following links in fullscreen Chrome for example.
2020-05-06 21:42:26 -07:00
jpark37 36b7ac432d libobs-winrt: Stronger exception handling
Exceptions were still leaking through somehow.
2020-03-25 08:50:01 -07:00
Richard Stanway 59d72437b4 libobs-winrt: Fix missing parentheses 2020-03-19 15:50:32 +01:00
jpark37 f229d35a05 libobs-winrt: Catch more hresult exceptions
Wrap winrt_capture_supported and winrt_capture_cursor_toggle_supported
with try/catch.
2020-03-18 09:21:40 -07:00
jpark37 e4e96c5cef libobs-winrt: win-capture: Clean up error handling
Use proper check to fix false positive on 1809, and rework error spew to
remove output parameters from winrt_capture_init.
2020-03-18 00:33:12 -07:00
jp9000 327a6f599e win-capture: Fix potential crash due to unhandled exceptions 2020-03-17 12:22:20 -07:00
jpark37 cb4954c279 libobs-winrt: win-capture: HDC cursor capture for WGC
Starting with Windows 10 2004, we can disable WGC cursor capture, and
provide a user toggle. We swap out WGC support for our own though
because ours does not break hardware cursor support.
2020-03-07 20:40:39 -08:00
jpark37 2111a3a02f libobs-winrt: win-capture: Support client area toggle for WGC 2020-02-24 21:31:53 -08:00
jpark37 74c7375096 libobs-winrt: Add PCH
Reduces compile time from six seconds to less than a second.
2020-02-22 21:02:33 -08:00
jpark37 d6d27cfab1 libobs-winrt: Add module for WinRT functionality
Currently wraps Windows Graphics Capture API.
2020-02-22 21:02:33 -08:00