summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_texture.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-12-19 14:33:09 -0600
committerDerek Foreman <derekf@osg.samsung.com>2016-12-19 15:52:58 -0600
commit74a456253a2365911222b602cd4b77da33f9c6d5 (patch)
tree23ff8678b48fda2d2c05918b66526390a5a2419d /src/modules/evas/engines/gl_common/evas_gl_texture.c
parent98ef74eeba5dbc8ff62dccca9a317ef7dd64e2bf (diff)
gl_common: Make secsym_eglCreateImage a wrapper
eglCreateImage and eglCreateImageKHR are subtly different. Now we try to handle them both properly by exposing an abstraction.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c
index 7158e30263..903a60b214 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -849,10 +849,10 @@ _pool_tex_dynamic_new(Evas_Engine_GL_Context *gc, int w, int h, int intformat, i
849 buffer_format); 849 buffer_format);
850 if (!pt->dyn.buffer) goto error; 850 if (!pt->dyn.buffer) goto error;
851 851
852 pt->dyn.img = secsym_eglCreateImage(egldisplay, 852 pt->dyn.img = evas_gl_common_eglCreateImage(egldisplay,
853 EGL_NO_CONTEXT, 853 EGL_NO_CONTEXT,
854 EGL_NATIVE_SURFACE_TIZEN, 854 EGL_NATIVE_SURFACE_TIZEN,
855 pt->dyn.buffer, NULL); 855 pt->dyn.buffer, NULL);
856 if (!pt->dyn.img) 856 if (!pt->dyn.img)
857 { 857 {
858 secsym_tbm_surface_destroy(pt->dyn.buffer); 858 secsym_tbm_surface_destroy(pt->dyn.buffer);
@@ -867,7 +867,7 @@ _pool_tex_dynamic_new(Evas_Engine_GL_Context *gc, int w, int h, int intformat, i
867 { 867 {
868 int fmt; // EGL_MAP_GL_TEXTURE_RGBA_SEC or EGL_MAP_GL_TEXTURE_RGB_SEC or bust 868 int fmt; // EGL_MAP_GL_TEXTURE_RGBA_SEC or EGL_MAP_GL_TEXTURE_RGB_SEC or bust
869 int pixtype; // EGL_MAP_GL_TEXTURE_UNSIGNED_BYTE_SEC or bust 869 int pixtype; // EGL_MAP_GL_TEXTURE_UNSIGNED_BYTE_SEC or bust
870 int attr[] = 870 EGLAttrib attr[] =
871 { 871 {
872 EGL_MAP_GL_TEXTURE_WIDTH_SEC, 32, 872 EGL_MAP_GL_TEXTURE_WIDTH_SEC, 32,
873 EGL_MAP_GL_TEXTURE_HEIGHT_SEC, 32, 873 EGL_MAP_GL_TEXTURE_HEIGHT_SEC, 32,
@@ -894,10 +894,10 @@ _pool_tex_dynamic_new(Evas_Engine_GL_Context *gc, int w, int h, int intformat, i
894 894
895 // FIXME: seems a bit slower than i'd like - maybe too many flushes? 895 // FIXME: seems a bit slower than i'd like - maybe too many flushes?
896 // FIXME: YCbCr no support as yet 896 // FIXME: YCbCr no support as yet
897 pt->dyn.img = secsym_eglCreateImage(egldisplay, 897 pt->dyn.img = evas_gl_common_eglCreateImage(egldisplay,
898 EGL_NO_CONTEXT, 898 EGL_NO_CONTEXT,
899 EGL_MAP_GL_TEXTURE_2D_SEC, 899 EGL_MAP_GL_TEXTURE_2D_SEC,
900 0, attr); 900 0, attr);
901 if (!pt->dyn.img) goto error; 901 if (!pt->dyn.img) goto error;
902 902
903 if (secsym_eglGetImageAttribSEC(egldisplay, 903 if (secsym_eglGetImageAttribSEC(egldisplay,