Add implementation for egl_transfer2texture()