implement wayland-egl jni code