Code example for AtomicInteger

Methods: set

0
    public void setCameraEnabled(boolean enabled) {
        mCameraEnabled.set(enabled);
    } 
 
    public void resetFrameCounter() { 
        mReportedFrameCount.set(0);
    } 
 
    public int getFrameCounter() { 
        return mReportedFrameCount.get();
    } 
 
    class Renderer implements GLSurfaceView.Renderer {
        private final static String VERTEX_SHADER =
            "attribute vec4 vPosition;\n" + 
            "attribute vec2 a_texCoord;\n" + 
            "varying vec2 v_texCoord;\n" + 
            "uniform mat4 u_xform;\n" + 
            "void main() {\n" + 
            "  gl_Position = vPosition;\n" + 
            "  v_texCoord = vec2(u_xform * vec4(a_texCoord, 1.0, 1.0));\n" +