Remove disable-gpu flag from offscreen and WPF examples - bug has been fixed
This commit is contained in:
parent
c1276f824d
commit
507ac7f326
@ -23,18 +23,8 @@ 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();
|
|
||||||
|
|
||||||
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.
|
//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.
|
// Create the offscreen Chromium browser.
|
||||||
browser = new ChromiumWebBrowser(testUrl);
|
browser = new ChromiumWebBrowser(testUrl);
|
||||||
|
@ -11,14 +11,6 @@ namespace CefSharp.MinimalExample.Wpf
|
|||||||
var settings = new CefSettings();
|
var settings = new CefSettings();
|
||||||
settings.EnableInternalPdfViewerOffScreen();
|
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);
|
Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user