From 8f599500296e08a440851094b1f5d58e783ed628 Mon Sep 17 00:00:00 2001 From: amaitland Date: Tue, 7 Jun 2016 15:11:50 +1000 Subject: [PATCH] Set shutdownOnProcessExit to false (code has actually been removed so it's ignored totally now, just updating for completeness) Remove --disable-gpu from OSR examples --- CefSharp.MinimalExample.OffScreen/Program.cs | 4 +--- CefSharp.MinimalExample.WinForms/Program.cs | 2 +- CefSharp.MinimalExample.Wpf/App.xaml.cs | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CefSharp.MinimalExample.OffScreen/Program.cs b/CefSharp.MinimalExample.OffScreen/Program.cs index 75b0c7d..1acee44 100644 --- a/CefSharp.MinimalExample.OffScreen/Program.cs +++ b/CefSharp.MinimalExample.OffScreen/Program.cs @@ -23,11 +23,9 @@ namespace CefSharp.MinimalExample.OffScreen 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(settings, shutdownOnProcessExit: true, performDependencyCheck: true); + Cef.Initialize(settings, shutdownOnProcessExit: false, performDependencyCheck: true); // Create the offscreen Chromium browser. browser = new ChromiumWebBrowser(testUrl); diff --git a/CefSharp.MinimalExample.WinForms/Program.cs b/CefSharp.MinimalExample.WinForms/Program.cs index 3a182c7..c9eea82 100644 --- a/CefSharp.MinimalExample.WinForms/Program.cs +++ b/CefSharp.MinimalExample.WinForms/Program.cs @@ -13,7 +13,7 @@ namespace CefSharp.MinimalExample.WinForms public static void Main() { //Perform dependency check to make sure all relevant resources are in our output directory. - Cef.Initialize(new CefSettings(), shutdownOnProcessExit:true, performDependencyCheck:true); + Cef.Initialize(new CefSettings(), shutdownOnProcessExit:false, performDependencyCheck:true); var browser = new BrowserForm(); Application.Run(browser); diff --git a/CefSharp.MinimalExample.Wpf/App.xaml.cs b/CefSharp.MinimalExample.Wpf/App.xaml.cs index 6836df0..427bc5b 100644 --- a/CefSharp.MinimalExample.Wpf/App.xaml.cs +++ b/CefSharp.MinimalExample.Wpf/App.xaml.cs @@ -9,10 +9,8 @@ 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); + Cef.Initialize(settings, shutdownOnProcessExit: false, performDependencyCheck: true); } } }