Disable GPU in WPF and Offscreen examples until #1634 has been resolved
This commit is contained in:
parent
7fb5e3c2ac
commit
ffcf0ecadc
@ -22,8 +22,12 @@ namespace CefSharp.MinimalExample.OffScreen
|
|||||||
Console.WriteLine("You may see Chromium debugging output, please wait...");
|
Console.WriteLine("You may see Chromium debugging output, please wait...");
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
|
|
||||||
|
var settings = new CefSettings();
|
||||||
|
// Disable GPU in WPF and Offscreen examples until #1634 has been resolved
|
||||||
|
settings.CefCommandLineArgs.Add("disable-gpu", "1");
|
||||||
|
|
||||||
//Perform dependency check to make sure all relevant resources are in our output directory.
|
//Perform dependency check to make sure all relevant resources are in our output directory.
|
||||||
Cef.Initialize(new CefSettings(), shutdownOnProcessExit: true, performDependencyCheck: true);
|
Cef.Initialize(settings, shutdownOnProcessExit: true, performDependencyCheck: true);
|
||||||
|
|
||||||
// Create the offscreen Chromium browser.
|
// Create the offscreen Chromium browser.
|
||||||
browser = new ChromiumWebBrowser(testUrl);
|
browser = new ChromiumWebBrowser(testUrl);
|
||||||
|
@ -9,6 +9,9 @@ namespace CefSharp.MinimalExample.Wpf
|
|||||||
//Perform dependency check to make sure all relevant resources are in our output directory.
|
//Perform dependency check to make sure all relevant resources are in our output directory.
|
||||||
var settings = new CefSettings();
|
var settings = new CefSettings();
|
||||||
settings.EnableInternalPdfViewerOffScreen();
|
settings.EnableInternalPdfViewerOffScreen();
|
||||||
|
// Disable GPU in WPF and Offscreen examples until #1634 has been resolved
|
||||||
|
settings.CefCommandLineArgs.Add("disable-gpu", "1");
|
||||||
|
|
||||||
Cef.Initialize(settings, shutdownOnProcessExit: true, performDependencyCheck: true);
|
Cef.Initialize(settings, shutdownOnProcessExit: true, performDependencyCheck: true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user