letsrobotandroid-api/src/main/java/tv/letsrobot/android/api/utils/SurfaceTextureUtils.java
Method createProgram
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
public void surfaceCreated() throws SurfaceTextureException {
mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER);
if (mProgram == 0) {
throw new SurfaceTextureException("failed creating program");