From 507ac7f32642c903411cb11a68c21e0f0cddf050 Mon Sep 17 00:00:00 2001 From: amaitland Date: Thu, 15 Sep 2016 21:08:28 +1000 Subject: [PATCH] Remove disable-gpu flag from offscreen and WPF examples - bug has been fixed --- CefSharp.MinimalExample.OffScreen/Program.cs | 12 +----------- CefSharp.MinimalExample.Wpf/App.xaml.cs | 8 -------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/CefSharp.MinimalExample.OffScreen/Program.cs b/CefSharp.MinimalExample.OffScreen/Program.cs index 8ef4e8a..24c6e3f 100644 --- a/CefSharp.MinimalExample.OffScreen/Program.cs +++ b/CefSharp.MinimalExample.OffScreen/Program.cs @@ -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); diff --git a/CefSharp.MinimalExample.Wpf/App.xaml.cs b/CefSharp.MinimalExample.Wpf/App.xaml.cs index 233f32c..2f38d37 100644 --- a/CefSharp.MinimalExample.Wpf/App.xaml.cs +++ b/CefSharp.MinimalExample.Wpf/App.xaml.cs @@ -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); } }