gl_drm:Rename import_simple_dmabuf to gl_import_simple_dmabuf

There's also an ecore_drm2 function to import dmabuf as fb, so it's a
little less confusing to be a little more explicit here.
This commit is contained in:
Derek Foreman 2017-04-25 15:57:43 -05:00
parent 0f581cb745
commit a4ed205071
1 changed files with 3 additions and 3 deletions

View File

@ -589,7 +589,7 @@ _re_winfree(Render_Engine *re)
/* Code from weston's gl-renderer... */
static EGLImageKHR
import_simple_dmabuf(EGLDisplay display, struct dmabuf_attributes *attributes)
gl_import_simple_dmabuf(EGLDisplay display, struct dmabuf_attributes *attributes)
{
EGLAttrib attribs[30];
int atti = 0;
@ -666,7 +666,7 @@ _native_cb_bind(void *image)
/* Must re-import every time for coherency. */
if (n->ns_data.wl_surface_dmabuf.image)
glsym_eglDestroyImage(img->native.disp, n->ns_data.wl_surface_dmabuf.image);
v = import_simple_dmabuf(img->native.disp, &n->ns_data.wl_surface_dmabuf.attr);
v = gl_import_simple_dmabuf(img->native.disp, &n->ns_data.wl_surface_dmabuf.attr);
if (!v) return;
glsym_glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, v);
n->ns_data.wl_surface_dmabuf.image = v;
@ -1087,7 +1087,7 @@ eng_image_native_set(void *data, void *image, void *native)
void *v;
attr = ns->data.wl_dmabuf.attr;
v = import_simple_dmabuf(ob->egl.disp, attr);
v = gl_import_simple_dmabuf(ob->egl.disp, attr);
if (!v) {
ns->data.wl_dmabuf.attr = NULL;
return NULL;