Disable GPU in WPF and Offscreen examples until #1634 has been resolved

This commit is contained in:
amaitland 2016-03-23 15:27:16 +10:00
parent 7fb5e3c2ac
commit ffcf0ecadc
2 changed files with 8 additions and 1 deletions

View File

@ -22,8 +22,12 @@ namespace CefSharp.MinimalExample.OffScreen
Console.WriteLine("You may see Chromium debugging output, please wait...");
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.
Cef.Initialize(new CefSettings(), shutdownOnProcessExit: true, performDependencyCheck: true);
Cef.Initialize(settings, shutdownOnProcessExit: true, performDependencyCheck: true);
// Create the offscreen Chromium browser.
browser = new ChromiumWebBrowser(testUrl);

View File

@ -9,6 +9,9 @@ namespace CefSharp.MinimalExample.Wpf
//Perform dependency check to make sure all relevant resources are in our output directory.
var settings = new CefSettings();
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);
}
}