[M69 Dev][EFL] Fix crashes/white screen at webview launch 13/191813/4 tizen.dev_m69
authorChandan Padhi <c.padhi@samsung.com>
Wed, 24 Oct 2018 05:55:11 +0000 (22:55 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Mon, 29 Oct 2018 02:31:28 +0000 (19:31 -0700)
This commit fixes the crashes at webview launch.
It also fixes the white screen observed later.

Basic page rendering works fine on desktop.

Change-Id: I3ff01e893e53241ebdb7c5951f57c4fe89ebdbcd
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
content/browser/browser_main_loop.cc
third_party/icu/common/icudtl.dat
tizen_src/ewk/efl_integration/command_line_efl.cc
ui/gl/gl_surface_egl.cc

index 9d6347e..3c38474 100644 (file)
@@ -548,7 +548,7 @@ BrowserMainLoop::BrowserMainLoop(const MainFunctionParams& parameters)
   g_current_browser_main_loop = this;
 
   if (GetContentClient()->browser()->ShouldCreateTaskScheduler()) {
-    DCHECK(base::TaskScheduler::GetInstance());
+    base::TaskScheduler::Create("Browser");
   }
 }
 
index a009f52..4a9d942 100644 (file)
Binary files a/third_party/icu/common/icudtl.dat and b/third_party/icu/common/icudtl.dat differ
index 5bd2095..a5022a9 100644 (file)
@@ -12,6 +12,7 @@
 #include "base/base_switches.h"
 #include "cc/base/switches.h"
 #include "common/content_switches_efl.h"
+#include "components/viz/common/switches.h"
 #include "content/public/common/content_client.h"
 #include "content/public/common/content_switches.h"
 #include "efl/init.h"
@@ -20,7 +21,7 @@
 #include "tizen/system_info.h"
 #include "ui/base/ui_base_switches.h"
 #include "ui/events/event_switches.h"
-#include "ui/gl/gl_switches.h"
+#include "ui/events/event_switches.h"
 #include "url/gurl.h"
 
 int CommandLineEfl::argc_ = 0;
@@ -87,7 +88,7 @@ content::MainFunctionParams CommandLineEfl::GetDefaultPortParams() {
   }
 #endif
 
-  p_command_line->AppendSwitch(switches::kDisableGpuVsync);
+  p_command_line->AppendSwitch(switches::kDisableFrameRateLimit);
 
 #if !defined(EWK_BRINGUP)
   if (p_command_line->HasSwitch(switches::kDisableIpcSandbox))
index 401e697..f887c1c 100644 (file)
@@ -894,6 +894,9 @@ EGLDisplay GLSurfaceEGL::InitializeDisplay(
   bool supports_egl_debug =
       client_extensions &&
       ExtensionsContain(client_extensions, "EGL_KHR_debug");
+#if defined(USE_EFL)
+  supports_egl_debug = false;
+#endif
   if (supports_egl_debug) {
     EGLAttrib controls[] = {
         EGL_DEBUG_MSG_CRITICAL_KHR,