Add Cef.DoMessageLoopWork example to WinForms.Example project

This commit is contained in:
amaitland
2015-10-21 19:56:45 +10:00
parent 221ec0dacc
commit fe11f2eada
4 changed files with 19 additions and 4 deletions
+3 -1
View File
@@ -27,7 +27,7 @@ namespace CefSharp.Example
private static readonly bool DebuggingSubProcess = Debugger.IsAttached;
private static string PluginInformation = "";
public static void Init(bool osr)
public static void Init(bool osr, bool multiThreadedMessageLoop)
{
// Set Google API keys, used for Geolocation requests sans GPS. See http://www.chromium.org/developers/how-tos/api-keys
// Environment.SetEnvironmentVariable("GOOGLE_API_KEY", "");
@@ -73,6 +73,8 @@ namespace CefSharp.Example
//Possibly useful when experiencing blury fonts.
//settings.CefCommandLineArgs.Add("disable-direct-write", "1");
settings.MultiThreadedMessageLoop = multiThreadedMessageLoop;
// Off Screen rendering (WPF/Offscreen)
if(osr)
{