protected void notifyOnSizeChangeListener(int width,int height){
  if (lastNotifiedSize.x == width && lastNotifiedSize.y == height) {
    return;
  }
  lastNotifiedSize.x=width;
  lastNotifiedSize.y=height;
  if (onSizeChangeListener != null) {
    onSizeChangeListener.onVideoSurfaceSizeChange(width,height);
  }
}

protected void notifyOnSizeChangeListener ( int width , int height ) { if ( lastNotifiedSize . x == width && lastNotifiedSize . y == height ) { return ; } lastNotifiedSize . x = width ; lastNotifiedSize . y = height ; if ( onSizeChangeListener != null ) { onSizeChangeListener . onVideoSurfaceSizeChange ( width , height ) ; } }
performs the functionality to notify the listener that the size of the surface has changed filtering out duplicate calls .
