jdk/src/share/classes/sun/java2d/opengl/OGLContext.java
changeset 12813 c10ab96dcf41
parent 5506 202f599c92aa
child 16734 da1901d79073
equal deleted inserted replaced
12491:b3a91113026c 12813:c10ab96dcf41
    29 import sun.java2d.pipe.RenderBuffer;
    29 import sun.java2d.pipe.RenderBuffer;
    30 import sun.java2d.pipe.RenderQueue;
    30 import sun.java2d.pipe.RenderQueue;
    31 import sun.java2d.pipe.hw.ContextCapabilities;
    31 import sun.java2d.pipe.hw.ContextCapabilities;
    32 import static sun.java2d.pipe.BufferedOpCodes.*;
    32 import static sun.java2d.pipe.BufferedOpCodes.*;
    33 import static sun.java2d.pipe.hw.ContextCapabilities.*;
    33 import static sun.java2d.pipe.hw.ContextCapabilities.*;
       
    34 
       
    35 import javax.tools.annotation.GenerateNativeHeader;
    34 
    36 
    35 /**
    37 /**
    36  * Note that the RenderQueue lock must be acquired before calling any of
    38  * Note that the RenderQueue lock must be acquired before calling any of
    37  * the methods in this class.
    39  * the methods in this class.
    38  */
    40  */
   151         rq.ensureCapacity(4);
   153         rq.ensureCapacity(4);
   152         buf.putInt(RESTORE_STATE);
   154         buf.putInt(RESTORE_STATE);
   153         rq.flushNow();
   155         rq.flushNow();
   154     }
   156     }
   155 
   157 
       
   158     /* No native methods here, but the constants are needed in the supporting JNI code */
       
   159     @GenerateNativeHeader
   156     static class OGLContextCaps extends ContextCapabilities {
   160     static class OGLContextCaps extends ContextCapabilities {
   157         /**
   161         /**
   158          * Indicates the presence of the GL_EXT_framebuffer_object extension.
   162          * Indicates the presence of the GL_EXT_framebuffer_object extension.
   159          * This cap will only be set if the fbobject system property has been
   163          * This cap will only be set if the fbobject system property has been
   160          * enabled and we are able to create an FBO with depth buffer.
   164          * enabled and we are able to create an FBO with depth buffer.