public EGLLogWrapper(EGL paramEGL, int paramInt, Writer paramWriter) { this.mEgl10 = ((EGL10)paramEGL); this.mLog = paramWriter; boolean bool2; if ((paramInt & 0x4) != 0) { bool2 = bool1; this.mLogArgumentNames = bool2; if ((paramInt & 0x1) == 0) break label55; } while (true) { this.mCheckError = bool1; return; bool2 = false; break; label55: bool1 = false; } }
public EGLLogWrapper(EGL egl, int configFlags, Writer log) { mEgl10 = (EGL10) egl; mLog = log; mLogArgumentNames = (GLDebugHelper.CONFIG_LOG_ARGUMENT_NAMES & configFlags) != 0; mCheckError = (GLDebugHelper.CONFIG_CHECK_GL_ERROR & configFlags) != 0; }
private RajawaliGLDebugger(int config, GL gl, EGL egl) { mConfig = config; mWriter = new Writer() { @Override public void close() throws IOException { flushBuilder(); } @Override public void flush() throws IOException { flushBuilder(); } @Override public void write(char[] buf, int offset, int count) throws IOException { for (int i = 0; i < count; i++) { char c = buf[offset + i]; if (c == '\n') { flushBuilder(); } else { mBuilder.append(c); } } } private void flushBuilder() { if (mBuilder.length() > 0) { RajLog.v(mBuilder.toString()); mBuilder.delete(0, mBuilder.length()); } } }; mGL = (gl != null) ? (GL10) GLDebugHelper.wrap(gl, config, mWriter) : null; mEGL = (egl != null) ? GLDebugHelper.wrap(egl, config, mWriter) : null; }
private GLDebugger(int config, GL gl, EGL egl) { mConfig = config; mWriter = new Writer() { @Override public void close() throws IOException { flushBuilder(); } @Override public void flush() throws IOException { flushBuilder(); } @Override public void write(char[] buf, int offset, int count) throws IOException { for (int i = 0; i < count; i++) { char c = buf[offset + i]; if (c == '\n') { flushBuilder(); } else { mBuilder.append(c); } } } private void flushBuilder() { if (mBuilder.length() > 0) { RajLog.v(mBuilder.toString()); mBuilder.delete(0, mBuilder.length()); } } }; mGL = (gl != null) ? (GL10) GLDebugHelper.wrap(gl, config, mWriter) : null; mEGL = (egl != null) ? GLDebugHelper.wrap(egl, config, mWriter) : null; }
public static EGL wrap(EGL paramEGL, int paramInt, Writer paramWriter) { if (paramWriter != null) paramEGL = new EGLLogWrapper(paramEGL, paramInt, paramWriter); return paramEGL; }
/** * Retrieve the wrapped {@link EGL} instance. If this debugger was not configured with a {@link EGL} * instance an exception will be thrown. * * @return {@link EGL} The wrapped EGL instance. * @throws IllegalStateException */ public EGL getEGL() throws IllegalStateException { if (mEGL == null) throw new IllegalStateException("This debugger was not configured with an EGL context."); return mEGL; }
/** * Sets the {@link EGL} instance to wrap. * * @param egl {@link EGL} */ public void setEGL(EGL egl) { mEGL = egl; }