mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
fb289d49d8
A port of WritableBitmapRenderHandler to use Marshal.AllocHGlobal instead of MemoryMappedFile Remove disable-gpu-compositing command line arg Resovles #3114
27 lines
944 B
C#
27 lines
944 B
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.Wpf
|
|
{
|
|
/// <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;
|
|
|
|
//Disable multithreaded, compositor scrolling of web content
|
|
//With OSR rendering it's fairly common for this to improve scrolling performace
|
|
//https://peter.sh/experiments/chromium-command-line-switches/#disable-threaded-scrolling
|
|
//CefCommandLineArgs.Add("disable-threaded-scrolling");
|
|
}
|
|
}
|
|
}
|