Files
cefsharp/CefSharp.OffScreen/CefSettings.cs
T
amaitland 924e7bd457 WPF/OffScreen - Remove disable-gpu-compositing command line arg
Now that https://bitbucket.org/chromiumembedded/cef/issues/2733/viz-osr-might-be-causing-some-graphic
is resolved this shouldn't be required.

There are some glitches with resizing, the CEF OSR engine still needs some improvements. At least
the basics appear to be working now
2020-04-29 08:12:36 +10:00

38 lines
1.2 KiB
C#

// Copyright © 2018 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.OffScreen
{
/// <summary>
/// Initialization settings. Many of these and other settings can also configured
/// using command-line switches.
/// </summary>
public class CefSettings : CefSettingsBase
{
/// <summary>
/// Intialize with default values
/// </summary>
public CefSettings() : base()
{
WindowlessRenderingEnabled = true;
//For OffScreen it doesn't make much sense to enable audio by default, so we disable it.
//this can be removed in user code if required
CefCommandLineArgs.Add("mute-audio");
}
/// <summary>
/// Enables Audio - by default audio is muted in the OffScreen implementatio.
/// This removes the mute-audio command line flag
/// </summary>
public void EnableAudio()
{
if (CefCommandLineArgs.ContainsKey("mute-audio"))
{
CefCommandLineArgs.Remove("mute-audio");
}
}
}
}