public void updateSurfaceData(SurfaceData srcData,SurfaceData dstData,int w,int h){
  SurfaceType srcType=srcData.getSurfaceType();
  SurfaceType dstType=dstData.getSurfaceType();
  Blit blit=Blit.getFromCache(srcType,CompositeType.SrcNoEa,dstType);
  blit.Blit(srcData,dstData,AlphaComposite.Src,null,0,0,0,0,w,h);
  dstData.markDirty();
}

public void updateSurfaceData ( SurfaceData srcData , SurfaceData dstData , int w , int h ) { SurfaceType srcType = srcData . getSurfaceType ( ) ; SurfaceType dstType = dstData . getSurfaceType ( ) ; Blit blit = Blit . getFromCache ( srcType , CompositeType . SrcNoEa , dstType ) ; blit . Blit ( srcData , dstData , AlphaComposite . Src , null , 0 , 0 , 0 , 0 , w , h ) ; dstData . markDirty ( ) ; }
this is the default implementation for updating the cached surfacedata from the source ( primary ) surfacedata . a simple blit is used to copy the pixels from the source to the destination surfacedata . a subclass can override this implementation if a more complex operation is required to update its cached copies .
