Remove disable-gpu flag from offscreen and WPF examples - bug has been fixed

This commit is contained in:
amaitland 2016-09-15 21:08:28 +10:00
parent c1276f824d
commit 507ac7f326
2 changed files with 1 additions and 19 deletions

View File

@ -23,18 +23,8 @@ namespace CefSharp.MinimalExample.OffScreen
Console.WriteLine("You may see Chromium debugging output, please wait...");
Console.WriteLine();
var settings = new CefSettings();
var osVersion = Environment.OSVersion;
//Disable GPU for Windows 7
if (osVersion.Version.Major == 6 && osVersion.Version.Minor == 1)
{
// 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(settings, performDependencyCheck: true, browserProcessHandler:null);
Cef.Initialize(new CefSettings(), performDependencyCheck: true, browserProcessHandler:null);
// Create the offscreen Chromium browser.
browser = new ChromiumWebBrowser(testUrl);

View File

@ -11,14 +11,6 @@ namespace CefSharp.MinimalExample.Wpf
var settings = new CefSettings();
settings.EnableInternalPdfViewerOffScreen();
var osVersion = Environment.OSVersion;
//Disable GPU for Windows 7
if (osVersion.Version.Major == 6 && osVersion.Version.Minor == 1)
{
// Disable GPU in WPF and Offscreen examples until #1634 has been resolved
settings.CefCommandLineArgs.Add("disable-gpu", "1");
}
Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);
}
}