[M120 Migration] Support GLES 3.0 05/306605/7
authorutkarshlal <utkarsh.lal@samsung.com>
Fri, 23 Feb 2024 05:39:20 +0000 (11:09 +0530)
committerDae-Hyun Ko <dhyuna.ko@samsung.com>
Thu, 14 Mar 2024 05:09:32 +0000 (05:09 +0000)
Enabled GLES3.0 support for m120 Tizen profile.

Support is disabled for desktop profile.
In case of desktop build, 2.x version context is created.

Reference patch: https://review.tizen.org/gerrit/c/285983

Change-Id: I17d8a4b441c3e37811452e1e2f913719fb33dff3
Signed-off-by: utkarshlal <utkarsh.lal@samsung.com>
tizen_src/chromium_impl/ui/gl/gl_shared_context_efl.cc
tizen_src/ewk/efl_integration/command_line_efl.cc

index e42ff01..ff0a3e4 100644 (file)
@@ -44,15 +44,12 @@ struct GLSharedContextEflPrivate : public gl::GLContext {
     evas_gl_config_->stencil_bits = EVAS_GL_STENCIL_BIT_8;
 
     evas_gl_ = evas_gl_new(evas);
-#if !defined(EWK_BRINGUP)  // FIXME: m114 bringup
-    if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
-            switches::kDisableES3GLContext)) {
-      evas_gl_context_ =
-          evas_gl_context_version_create(evas_gl_, 0, EVAS_GL_GLES_3_X);
-      if (evas_gl_context_) {
-        GLSharedContextEfl::GetShareGroup()->SetUseGLES3(true);
-        LOG(INFO) << "GLSharedContextEflPrivate(): Create GLES 3.0 Context";
-      }
+#if BUILDFLAG(IS_TIZEN)
+    evas_gl_context_ =
+        evas_gl_context_version_create(evas_gl_, 0, EVAS_GL_GLES_3_X);
+    if (evas_gl_context_) {
+      GLSharedContextEfl::GetShareGroup()->SetUseGLES3(true);
+      LOG(INFO) << "GLSharedContextEflPrivate(): Create GLES 3.0 Context";
     }
 #endif
     if (!evas_gl_context_) {
index 6942111..96161d3 100644 (file)
@@ -76,11 +76,6 @@ content::MainFunctionParams CommandLineEfl::GetDefaultPortParams() {
 
   AppendMemoryOptimizationSwitches(p_command_line);
 
-#if !defined(EWK_BRINGUP)  // FIXME: m114 bringup
-  if (IsDesktopProfile())
-    p_command_line->AppendSwitch(switches::kDisableES3GLContext);
-#endif
-
 #if BUILDFLAG(IS_TIZEN)
   // For optimizing discardable memory. [limit:MB, delay:ms]
   if (!p_command_line->HasSwitch(switches::kDiscardableMemoryLimit))