@Override
        public void onDrawFrame(GL10 gl) {
            if (videoProcessor == null) {
                return;
            }

            if (!initialized) {
                videoProcessor.initialize();
                initialized = true;
            }

            if (width != -1 && height != -1) {
                videoProcessor.setSurfaceSize(width, height);
                width = -1;
                height = -1;
            }

            if (frameAvailable.compareAndSet(true, false) && surfaceTexture != null) {
                surfaceTexture.updateTexImage();
                surfaceTexture.getTransformMatrix(transformMatrix);
            }

            videoProcessor.draw(texture, transformMatrix);
        }
@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