cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.76k stars 2.92k forks source link

Implement AcceleratedPaintInfo #4796

Closed Scalibq closed 2 months ago

Scalibq commented 2 months ago

Implement AcceleratedPaintInfo so the shared texture can be used for accelerated rendering in a custom IRenderHandler. Code was successfully tested against Direct3D11.1 using SharpDX on Windows 11. Use SharpDX.Direct3D11.Device1.OpenSharedResource1< Texture2D >(AcceleratedPaintInfo.SharedTextureHandle); Then copy the contents of this resource to your own Texture2D before returning from OnAcceleratedPaint().

AppVeyorBot commented 2 months ago

:white_check_mark: Build CefSharp 125.0.80-CI4992 completed (commit https://github.com/cefsharp/CefSharp/commit/ce86583499 by @)