private void performFrameTasks(){
synchronized (mFrameTaskQueue) {
    AFrameTask task=mFrameTaskQueue.poll();
    while (task != null) {
      task.run();
      task=mFrameTaskQueue.poll();
    }
  }
}

private void performFrameTasks ( ) { synchronized ( mFrameTaskQueue ) { AFrameTask task = mFrameTaskQueue . poll ( ) ; while ( task != null ) { task . run ( ) ; task = mFrameTaskQueue . poll ( ) ; } } }
internal method for performing frame tasks . should be called at the start of ondrawframe ( ) prior to render ( ) .
