@Override
        public synchronized void onSurfaceCreated(GL10 gl, EGLConfig config) {
            texture = GlUtil.createExternalTexture();
            surfaceTexture = new SurfaceTexture(texture);
            surfaceTexture.setOnFrameAvailableListener(
                    surfaceTexture -> {
                        frameAvailable.set(true);
                        requestRender();
                    });
            onSurfaceTextureAvailable(surfaceTexture);
        }
@param processor            Processor that draws to the view.
@param requireSecureContext Whether a GL context supporting protected content should be
                            created, if supported by the device.
dkplayer-sample/src/main/java/xyz/doikki/dkplayer/widget/render/gl/GLSurfaceRenderView.java