evas_gl_common: Add env "EVAS_GL_TEXTURE_ATLAS_DISABLE" to control texture atlas... 87/231687/2
authorJunsuChoi <jsuya.choi@samsung.com>
Thu, 23 Apr 2020 11:13:31 +0000 (20:13 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 24 Apr 2020 03:28:52 +0000 (12:28 +0900)
To disable texture atlas, calling setenv before elm_win_add
*This patch was added for a fix issue related to atlas image of product code.(tizen_4.0)

Change-Id: I422433c05244b785c96e7a9d52469cde7189cb83

src/modules/evas/engines/gl_common/evas_gl_common.h
src/modules/evas/engines/gl_common/evas_gl_context.c
src/modules/evas/engines/gl_common/evas_gl_image.c

index 3d807b0..4d80c87 100755 (executable)
@@ -413,6 +413,10 @@ struct _Evas_Engine_GL_Context
    // modified to share resource by each gl backend
    Eina_TLS context_key;
    Eina_TLS shared_key;
+
+   // TIZEN_ONLY(200423) : Add env "EVAS_GL_TEXTURE_ATLAS_DISABLE" to control texture atlas for image upload
+   Eina_Bool          disable_texture_atlas;
+   //
 };
 
 struct _Evas_GL_Texture_Pool
index dbcb7e5..c578f0f 100644 (file)
@@ -1200,6 +1200,15 @@ evas_gl_common_context_new(Eina_TLS context_key, Eina_TLS shared_key)
 
    gc->references = 1;
 
+   // TIZEN_ONLY(200423) : Add env "EVAS_GL_TEXTURE_ATLAS_DISABLE" to control texture atlas for image upload
+   gc->disable_texture_atlas = EINA_FALSE;
+   if (getenv("EVAS_GL_TEXTURE_ATLAS_DISABLE"))
+   {
+       WRN("Disable Texture Atlas by env - EVAS_GL_TEXTURE_ATLAS_DISABLE");
+       gc->disable_texture_atlas = EINA_TRUE;
+   }
+   //
+
    if (context_key)
      {
        eina_tls_set(context_key, gc);
index 05422ab..c6dbec1 100755 (executable)
@@ -800,6 +800,11 @@ evas_gl_common_image_update(Evas_Engine_GL_Context *gc, Evas_GL_Image *im)
    if (!im->tex && ie->preload) return;
 
    evas_gl_common_image_alloc_ensure(im);
+
+   // TIZEN_ONLY(200423) : Add env "EVAS_GL_TEXTURE_ATLAS_DISABLE" to control texture atlas for image upload
+   im->disable_atlas = gc->disable_texture_atlas;
+   //
+
    // alloc ensure can change im->im, so only get the local variable later.
    ie = &im->im->cache_entry;
 /*