private boolean flushAccumulatedRegion(){
  boolean success=true;
  if (accumulatedX != Integer.MAX_VALUE) {
    SubRegionShowable bsSubRegion=(SubRegionShowable)bufferStrategy;
    boolean contentsLost=bufferStrategy.contentsLost();
    if (!contentsLost) {
      bsSubRegion.show(accumulatedX,accumulatedY,accumulatedMaxX,accumulatedMaxY);
      contentsLost=bufferStrategy.contentsLost();
    }
    if (contentsLost) {
      if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) {
        LOGGER.finer("endPaint: contents lost");
      }
      bufferInfo.setInSync(false);
      success=false;
    }
  }
  resetAccumulated();
  return success;
}

private boolean flushAccumulatedRegion ( ) { boolean success = true ; if ( accumulatedX != Integer . MAX_VALUE ) { SubRegionShowable bsSubRegion = ( SubRegionShowable ) bufferStrategy ; boolean contentsLost = bufferStrategy . contentsLost ( ) ; if ( ! contentsLost ) { bsSubRegion . show ( accumulatedX , accumulatedY , accumulatedMaxX , accumulatedMaxY ) ; contentsLost = bufferStrategy . contentsLost ( ) ; } if ( contentsLost ) { if ( LOGGER . isLoggable ( PlatformLogger . Level . FINER ) ) { LOGGER . finer ( "endPaint: contents lost" ) ; } bufferInfo . setInSync ( false ) ; success = false ; } } resetAccumulated ( ) ; return success ; }
renders the bufferstrategy to the screen .
