Code example for AtomicInteger

Methods: incrementAndGet

0
            checkGlError("initialization"); 
            mSurfaceTexture = new SurfaceTexture(mTextureName);
            mSurfaceTexture.setOnFrameAvailableListener(new OnFrameAvailableListener() {
                @Override 
                public void onFrameAvailable(SurfaceTexture surfaceTexture) {
                    mCameraFrameCount.incrementAndGet();
                } 
            }); 
        } 
 
        /* (non-Javadoc) 
         * @see android.opengl.GLSurfaceView.Renderer#onSurfaceChanged(javax.microedition.khronos.opengles.GL10, int, int) 
         */ 
        @Override 
        public void onSurfaceChanged(GL10 gl, int width, int height) {
            mViewWidth = width;
            mViewHeight = height;
        } 
 
        private static final int GL_TEXTURE_EXTERNAL_OES = 0x8D65;
        @Override