question: public static void validateContext ( AccelSurface srcData , AccelSurface dstData , Region clip , Composite comp , AffineTransform xform , Paint paint , SunGraphics2D sg2d , int flags ) { BufferedContext context = dstData . getContext ( ) ; context . validate ( srcData , dstData , clip , comp , xform , paint , sg2d , flags ) ; }
target:  Fetches the BufferedContextContext associated with the dst. surface and validates the context using the given parameters.  Most rendering operations will call this method first in order to set the necessary state before issuing rendering commands. Note: must be called while the RenderQueue lock is held. It's assumed that the type of surfaces has been checked by the Renderer