Appspotdemo.Mono.Droid.VideoStreamsView.OnDrawFrame C# (CSharp) Method

OnDrawFrame() public method

public OnDrawFrame ( IGL10 unused ) : void
unused IGL10
return void
        public void OnDrawFrame(IGL10 unused)
        {
            GLES20.GlClear(GLES20.GlColorBufferBit);
            drawRectangle(yuvTextures[1], remoteVertices);
            drawRectangle(yuvTextures[0], localVertices);
            ++numFramesSinceLastLog;
            long now = JavaSystem.NanoTime();
            if (lastFPSLogTime == -1 || now - lastFPSLogTime > 1e9)
            {
                double fps = numFramesSinceLastLog / ((now - lastFPSLogTime) / 1e9);
                Log.Debug(TAG, "Rendered FPS: " + fps);
                lastFPSLogTime = now;
                numFramesSinceLastLog = 1;
            }
            checkNoGLES2Error();
        }