public void update(GL10 gl){
  if (taskQueue.size() > 0) {
    GLResorceTask res;
    while ((res=taskQueue.poll()) != null) {
      res.perform(gl);
    }
  }
}

public void update ( GL10 gl ) { if ( taskQueue . size ( ) > 0 ) { GLResorceTask res ; while ( ( res = taskQueue . poll ( ) ) != null ) { res . perform ( gl ) ; } } }
method is called from update cycle , perform all tasks in gl thread
