When app is in background and app creates many renderer process, app is
blocked. In order to resolve this problem, we limit the number of
renderer process.
Change-Id: Ie1a2622532bafa7e049bae9d05ebd287b309eb2b
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
using System;
using NUnitLite.TUnit;
using AutoTemplate;
-using Tizen.WebView;\r
-\r
+using System.Collections.Generic;
+using Tizen.WebView;
+
namespace XamarinForTizen.Tizen
{
class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
{
private static App _app;
+ private static string[] _chromiumArgv = { "--renderer-process-limit=1" };
+
protected override void OnCreate()
{
base.OnCreate();
var app = new Program();
global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);
Chromium.Initialize();
+ List<string> argv = new List<string>(_chromiumArgv);
+ argv.Insert(0, app.Name);
+ Chromium.SetArguments(argv.ToArray());
app.Run(args);
Chromium.Shutdown();
}