public void invalidateContext(){
  resetTransform();
  resetComposite();
  resetClip();
  BufferedPaints.resetPaint(rq);
  invalidateSurfaces();
  validCompRef.clear();
  validClipRef.clear();
  validPaintRef.clear();
  isValidatedPaintJustAColor=false;
  xformInUse=false;
}

public void invalidateContext ( ) { resetTransform ( ) ; resetComposite ( ) ; resetClip ( ) ; BufferedPaints . resetPaint ( rq ) ; invalidateSurfaces ( ) ; validCompRef . clear ( ) ; validClipRef . clear ( ) ; validPaintRef . clear ( ) ; isValidatedPaintJustAColor = false ; xformInUse = false ; }
resets this context ' s surfaces and all attributes . note : must be called while the renderqueue lock is held .
