Use native render descriptor decoder by default

This commit is contained in:
Meta Vens 2026-05-19 12:38:13 +01:00
commit c06d4cbf28
2 changed files with 71 additions and 0 deletions

View file

@ -116,6 +116,16 @@ public sealed class LocalCastNativeVisualFrameSource : ILocalCastVisualFrameSour
private readonly ILocalCastNativeRuntime runtime;
private readonly LocalCastNativeRenderPayloadDecoder decodeRenderPayload;
public LocalCastNativeVisualFrameSource(
ILocalCastNativeRuntime runtime,
string description = "native LocalcastRuntime")
: this(
runtime,
new LocalCastNativeRenderDescriptorDecoder(LocalCastNativeRenderDescriptorDecoder.DecodeNativePointBuffer).TryDecode,
description)
{
}
public LocalCastNativeVisualFrameSource(
ILocalCastNativeRuntime runtime,
LocalCastNativeRenderPayloadDecoder decodeRenderPayload,