fixup! [M130 Migration][NUI][Rendering] Support ecore_evas sw backend 18/320518/3
authorsidpaswan <s.paswan@samsung.com>
Tue, 4 Mar 2025 11:42:40 +0000 (17:12 +0530)
committerInsoon Kim <is46.kim@samsung.com>
Tue, 4 Mar 2025 23:15:10 +0000 (23:15 +0000)
This patch fixes re-introduced black screen issue when launching webapp.
Start the BrowserGpuChannelHostFactory after GLSharedContextEfl has been initialized as it was the case before.

Change-Id: I9c953c6b34a2c82ce3eb1c6ddb08b22a0744d176
Signed-off-by: sidpaswan <s.paswan@samsung.com>
content/browser/web_contents/web_contents_impl.cc

index 4be7a2aa76fd61c29c1eb49e8a142a9694ce8722..03f69b6a706ecaaafe7b4f08c7b097f2c475f1d4 100644 (file)
@@ -11500,10 +11500,6 @@ void WebContentsImpl::CreateEflMainLayout() {
   elm_layout_file_set(efl_main_layout_, main_edj.AsUTF8Unsafe().c_str(),
                       "main_layout");
 
-#if BUILDFLAG(IS_TIZEN) && !BUILDFLAG(IS_TIZEN_TV)
-  BrowserGpuChannelHostFactory::Start();
-#endif
-
   auto* ee = ecore_evas_ecore_evas_get(evas_object_evas_get(efl_main_layout_));
   const char* sw_engine = "wayland_shm";
   if (!strncmp(sw_engine, ecore_evas_engine_name_get(ee), strlen(sw_engine))) {
@@ -11514,6 +11510,10 @@ void WebContentsImpl::CreateEflMainLayout() {
     GLSharedContextEfl::Initialize(root_window);
   }
 
+#if BUILDFLAG(IS_TIZEN) && !BUILDFLAG(IS_TIZEN_TV)
+  BrowserGpuChannelHostFactory::Start();
+#endif
+
   ui::EflScreen::UpdateDisplayInfo(ee);
 }