surface only when egl extension is supported
Summary:
Dynamic hint set using tbm surface can only be used when EGL_TIZEN_image_native_surface
extension is supported by the driver. So check for both tbm surface and egl extension.
From
74e556febc1324a2b36531a1478481e44c594298 Mon Sep 17 00:00:00 2001
From: Dongyeon Kim <dy5.kim@samsung.com>
Change-Id: I1cbbfe2911574d989854d6e077a8caed8bbf7000
Eina_Bool tex_rect : 1;
Eina_Bool sec_image_map : 1;
Eina_Bool sec_tbm_surface : 1;
+ Eina_Bool egl_tbm_ext : 1;
Eina_Bool bin_program : 1;
Eina_Bool unpack_row_length : 1;
Eina_Bool etc1 : 1;
if (im->content_hint == hint) return;
im->content_hint = hint;
if (!im->gc) return;
- if ((!im->gc->shared->info.sec_image_map)
- && (!im->gc->shared->info.sec_tbm_surface)) return;
if (!im->gc->shared->info.bgra) return;
// does not handle yuv yet.
// TODO: Check this list of cspaces
}
if (im->content_hint == EVAS_IMAGE_CONTENT_HINT_DYNAMIC)
{
+ if ((!im->gc->shared->info.sec_image_map) &&
+ ((!im->gc->shared->info.sec_tbm_surface) || (!im->gc->shared->info.egl_tbm_ext))) return;
if (im->cs.data)
{
if (!im->cs.no_free) free(im->cs.data);
{
glsym_eglSwapBuffersWithDamage = NULL;
}
+ if (strstr(str, "EGL_TIZEN_image_native_surface"))
+ {
+ eng_get_ob(re)->gl_context->shared->info.egl_tbm_ext = 1;
+ }
}
else
{