Files
cefsharp/CefSharp.OffScreen/CefSettings.cs
T
amaitland f04648ef11 Xml Doc - Add some more xml doc
Some of it's just placeholder doc to keep sandcastle happy
2018-09-05 09:51:22 +10:00

35 lines
1.3 KiB
C#

// Copyright © 2010-2017 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 : AbstractCefSettings
{
/// <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", "1");
if (Cef.CefVersion.StartsWith("r3.3497"))
{
throw new System.Exception("Issue #2408 should have been resolved, remove the below code");
}
//https://github.com/cefsharp/CefSharp/issues/2408
CefCommandLineArgs.Add("disable-features", "AsyncWheelEvents,SurfaceSynchronization,TouchpadAndWheelScrollLatching");
CefCommandLineArgs.Add("disable-blink-features", "RootLayerScrolling");
}
}
}