btelman96/letsrobot-android

View on GitHub
letsrobotandroid-api/src/main/java/tv/letsrobot/android/api/utils/SurfaceTextureUtils.java

Summary

Maintainability
A
2 hrs
Test Coverage

Method createProgram has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private int createProgram(String vertexSource, String fragmentSource) throws SurfaceTextureException {
            int vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexSource);
            if (vertexShader == 0) {
                return 0;
            }

    Method surfaceCreated has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public void surfaceCreated() throws SurfaceTextureException {
    
                mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER);
                if (mProgram == 0) {
                    throw new SurfaceTextureException("failed creating program");

      There are no issues that match your filters.

      Category
      Status