jdk/src/share/classes/sun/java2d/pipe/BufferedContext.java
changeset 12813 c10ab96dcf41
parent 11897 9e80dbac0293
child 16734 da1901d79073
child 16840 64446d4710c4
equal deleted inserted replaced
12491:b3a91113026c 12813:c10ab96dcf41
    35 import sun.java2d.SunGraphics2D;
    35 import sun.java2d.SunGraphics2D;
    36 import sun.java2d.loops.XORComposite;
    36 import sun.java2d.loops.XORComposite;
    37 import static sun.java2d.pipe.BufferedOpCodes.*;
    37 import static sun.java2d.pipe.BufferedOpCodes.*;
    38 import static sun.java2d.pipe.BufferedRenderPipe.BYTES_PER_SPAN;
    38 import static sun.java2d.pipe.BufferedRenderPipe.BYTES_PER_SPAN;
    39 
    39 
       
    40 import javax.tools.annotation.GenerateNativeHeader;
       
    41 
    40 /**
    42 /**
    41  * Base context class for managing state in a single-threaded rendering
    43  * Base context class for managing state in a single-threaded rendering
    42  * environment.  Each state-setting operation (e.g. SET_COLOR) is added to
    44  * environment.  Each state-setting operation (e.g. SET_COLOR) is added to
    43  * the provided RenderQueue, which will be processed at a later time by a
    45  * the provided RenderQueue, which will be processed at a later time by a
    44  * single thread.  Note that the RenderQueue lock must be acquired before
    46  * single thread.  Note that the RenderQueue lock must be acquired before
    45  * calling the validate() method (or any other method in this class).  See
    47  * calling the validate() method (or any other method in this class).  See
    46  * the RenderQueue class comments for a sample usage scenario.
    48  * the RenderQueue class comments for a sample usage scenario.
    47  *
    49  *
    48  * @see RenderQueue
    50  * @see RenderQueue
    49  */
    51  */
       
    52 /* No native methods here, but the constants are needed in the supporting JNI code */
       
    53 @GenerateNativeHeader
    50 public abstract class BufferedContext {
    54 public abstract class BufferedContext {
    51 
    55 
    52     /*
    56     /*
    53      * The following flags help the internals of validate() determine
    57      * The following flags help the internals of validate() determine
    54      * the appropriate (meaning correct, or optimal) code path when
    58      * the appropriate (meaning correct, or optimal) code path when