This patch enables the use of virtualized gl context to avoid creation of one extra egl context for rendering.
During context switching eglMakeCurrent fails resulting rendering issues such as blackscreen and flickering.
Reference: https://source.chromium.org/chromium/chromium/src/+/
b5c1f24dca6e2e4343726413bab61d4bbbd9ca21
Change-Id: I4b9e05f831db8f8784cb1a3472df1a81f668c054
Signed-off-by: sidpaswan <s.paswan@samsung.com>
gpu_feature_info_.enabled_gpu_driver_bug_workarounds);
bool use_virtualized_gl_context = false;
-#if BUILDFLAG(IS_MAC)
+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_TIZEN)
// Virtualize GpuPreference:::kLowPower contexts by default on OS X to prevent
// performance regressions when enabling FCM. https://crbug.com/180463
use_virtualized_gl_context = true;
use_virtualized_gl_context_ = true;
#endif
+#if BUILDFLAG(IS_TIZEN)
+ use_virtualized_gl_context_ = true;
+#endif
+
use_virtualized_gl_context_ |=
context_group_->feature_info()->workarounds().use_virtualized_gl_contexts;
scoped_refptr<gl::GLSurface> surface = default_offscreen_surface();
bool use_virtualized_gl_contexts = false;
-#if BUILDFLAG(IS_MAC)
+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_TIZEN)
// Virtualize GpuPreference::kLowPower contexts by default on OS X to prevent
// performance regressions when enabling FCM.
// http://crbug.com/180463