src/java.desktop/share/classes/sun/java2d/opengl/OGLContext.java
author serb
Fri, 13 Sep 2019 17:35:12 -0700
changeset 58324 0aba35254e00
parent 47216 71c04702a3d5
permissions -rw-r--r--
8229896: Delete an unused code in the BufferedContext Reviewed-by: prr, jdv
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
58324
0aba35254e00 8229896: Delete an unused code in the BufferedContext
serb
parents: 47216
diff changeset
     2
 * Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 888
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 888
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 888
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 888
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 888
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.java2d.opengl;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
58324
0aba35254e00 8229896: Delete an unused code in the BufferedContext
serb
parents: 47216
diff changeset
    28
import java.lang.annotation.Native;
0aba35254e00 8229896: Delete an unused code in the BufferedContext
serb
parents: 47216
diff changeset
    29
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import sun.java2d.pipe.BufferedContext;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import sun.java2d.pipe.RenderBuffer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import sun.java2d.pipe.RenderQueue;
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
    33
import sun.java2d.pipe.hw.ContextCapabilities;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
58324
0aba35254e00 8229896: Delete an unused code in the BufferedContext
serb
parents: 47216
diff changeset
    35
import static sun.java2d.pipe.BufferedOpCodes.INVALIDATE_CONTEXT;
0aba35254e00 8229896: Delete an unused code in the BufferedContext
serb
parents: 47216
diff changeset
    36
import static sun.java2d.pipe.BufferedOpCodes.SET_SCRATCH_SURFACE;
12813
c10ab96dcf41 7170969: Add @GenerateNativeHeader to classes whose fields need to be exported for JNI
erikj
parents: 5506
diff changeset
    37
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * Note that the RenderQueue lock must be acquired before calling any of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * the methods in this class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 */
58324
0aba35254e00 8229896: Delete an unused code in the BufferedContext
serb
parents: 47216
diff changeset
    42
final class OGLContext extends BufferedContext {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
58324
0aba35254e00 8229896: Delete an unused code in the BufferedContext
serb
parents: 47216
diff changeset
    44
    OGLContext(RenderQueue rq) {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
        super(rq);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
     * Convenience method that delegates to setScratchSurface() below.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    static void setScratchSurface(OGLGraphicsConfig gc) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        setScratchSurface(gc.getNativeConfigInfo());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
     * Makes the given GraphicsConfig's context current to its associated
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
     * "scratch surface".  Each GraphicsConfig maintains a native context
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     * (GLXContext on Unix, HGLRC on Windows) as well as a native pbuffer
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     * known as the "scratch surface".  By making the context current to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     * scratch surface, we are assured that we have a current context for
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     * the relevant GraphicsConfig, and can therefore perform operations
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * depending on the capabilities of that GraphicsConfig.  For example,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     * if the GraphicsConfig supports the GL_ARB_texture_non_power_of_two
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     * extension, then we should be able to make a non-pow2 texture for this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * GraphicsConfig once we make the context current to the scratch surface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     * This method should be used for operations with an OpenGL texture
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     * as the destination surface (e.g. a sw->texture blit loop), or in those
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * situations where we may not otherwise have a current context (e.g.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * when disposing a texture-based surface).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    static void setScratchSurface(long pConfigInfo) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
        // assert OGLRenderQueue.getInstance().lock.isHeldByCurrentThread();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        // invalidate the current context
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        currentContext = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
        // set the scratch context
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        OGLRenderQueue rq = OGLRenderQueue.getInstance();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
        RenderBuffer buf = rq.getBuffer();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        rq.ensureCapacityAndAlignment(12, 4);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        buf.putInt(SET_SCRATCH_SURFACE);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
        buf.putLong(pConfigInfo);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * Invalidates the currentContext field to ensure that we properly
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * revalidate the OGLContext (make it current, etc.) next time through
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * the validate() method.  This is typically invoked from methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * that affect the current context state (e.g. disposing a context or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * surface).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    static void invalidateCurrentContext() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        // assert OGLRenderQueue.getInstance().lock.isHeldByCurrentThread();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
    96
        // invalidate the current Java-level context so that we
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
    97
        // revalidate everything the next time around
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
    98
        if (currentContext != null) {
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
    99
            currentContext.invalidateContext();
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   100
            currentContext = null;
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   101
        }
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   102
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   103
        // invalidate the context reference at the native level, and
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        // then flush the queue so that we have no pending operations
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        // dependent on the current context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        OGLRenderQueue rq = OGLRenderQueue.getInstance();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        rq.ensureCapacity(4);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        rq.getBuffer().putInt(INVALIDATE_CONTEXT);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        rq.flushNow();
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   110
    }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   112
    /**
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   113
     * Returns a string representing adapter id (vendor, renderer, version).
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   114
     * Must be called on the rendering thread.
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   115
     *
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   116
     * @return an id string for the adapter
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   117
     */
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   118
    static final native String getOGLIdString();
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   119
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   120
    static class OGLContextCaps extends ContextCapabilities {
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   121
        /**
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   122
         * Indicates the presence of the GL_EXT_framebuffer_object extension.
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   123
         * This cap will only be set if the fbobject system property has been
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   124
         * enabled and we are able to create an FBO with depth buffer.
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   125
         */
16739
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   126
        @Native
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   127
        static final int CAPS_EXT_FBOBJECT     =
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   128
                (CAPS_RT_TEXTURE_ALPHA | CAPS_RT_TEXTURE_OPAQUE);
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   129
        /** Indicates that the context is doublebuffered. */
16739
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   130
        @Native
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   131
        static final int CAPS_DOUBLEBUFFERED   = (FIRST_PRIVATE_CAP << 0);
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   132
        /**
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   133
         * Indicates the presence of the GL_ARB_fragment_shader extension.
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   134
         * This cap will only be set if the lcdshader system property has been
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   135
         * enabled and the hardware supports the minimum number of texture units
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   136
         */
16739
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   137
        @Native
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   138
        static final int CAPS_EXT_LCD_SHADER   = (FIRST_PRIVATE_CAP << 1);
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   139
        /**
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   140
         * Indicates the presence of the GL_ARB_fragment_shader extension.
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   141
         * This cap will only be set if the biopshader system property has been
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   142
         * enabled and the hardware meets our minimum requirements.
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   143
         */
16739
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   144
        @Native
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   145
        static final int CAPS_EXT_BIOP_SHADER  = (FIRST_PRIVATE_CAP << 2);
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   146
        /**
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   147
         * Indicates the presence of the GL_ARB_fragment_shader extension.
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   148
         * This cap will only be set if the gradshader system property has been
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   149
         * enabled and the hardware meets our minimum requirements.
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   150
         */
16739
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   151
        @Native
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   152
        static final int CAPS_EXT_GRAD_SHADER  = (FIRST_PRIVATE_CAP << 3);
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   153
        /** Indicates the presence of the GL_ARB_texture_rectangle extension. */
16739
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   154
        @Native
018660b0c613 8011602: jobjc build failure on Mac
dxu
parents: 16734
diff changeset
   155
        static final int CAPS_EXT_TEXRECT      = (FIRST_PRIVATE_CAP << 4);
31882
0268245131a9 8087201: OGL: rendering of lcd text is slow
bae
parents: 31661
diff changeset
   156
        /** Indicates the presence of the GL_NV_texture_barrier extension. */
0268245131a9 8087201: OGL: rendering of lcd text is slow
bae
parents: 31661
diff changeset
   157
        @Native
0268245131a9 8087201: OGL: rendering of lcd text is slow
bae
parents: 31661
diff changeset
   158
        static final int CAPS_EXT_TEXBARRIER = (FIRST_PRIVATE_CAP << 5);
0268245131a9 8087201: OGL: rendering of lcd text is slow
bae
parents: 31661
diff changeset
   159
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   160
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   161
        OGLContextCaps(int caps, String adapterId) {
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   162
            super(caps, adapterId);
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   163
        }
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   164
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   165
        @Override
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   166
        public String toString() {
24969
afa6934dd8e8 8041679: Replace uses of StringBuffer with StringBuilder within core library classes
psandoz
parents: 16739
diff changeset
   167
            StringBuilder sb = new StringBuilder(super.toString());
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   168
            if ((caps & CAPS_EXT_FBOBJECT) != 0) {
24969
afa6934dd8e8 8041679: Replace uses of StringBuffer with StringBuilder within core library classes
psandoz
parents: 16739
diff changeset
   169
                sb.append("CAPS_EXT_FBOBJECT|");
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   170
            }
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   171
            if ((caps & CAPS_DOUBLEBUFFERED) != 0) {
24969
afa6934dd8e8 8041679: Replace uses of StringBuffer with StringBuilder within core library classes
psandoz
parents: 16739
diff changeset
   172
                sb.append("CAPS_DOUBLEBUFFERED|");
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   173
            }
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   174
            if ((caps & CAPS_EXT_LCD_SHADER) != 0) {
24969
afa6934dd8e8 8041679: Replace uses of StringBuffer with StringBuilder within core library classes
psandoz
parents: 16739
diff changeset
   175
                sb.append("CAPS_EXT_LCD_SHADER|");
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   176
            }
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   177
            if ((caps & CAPS_EXT_BIOP_SHADER) != 0) {
24969
afa6934dd8e8 8041679: Replace uses of StringBuffer with StringBuilder within core library classes
psandoz
parents: 16739
diff changeset
   178
                sb.append("CAPS_BIOP_SHADER|");
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   179
            }
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   180
            if ((caps & CAPS_EXT_GRAD_SHADER) != 0) {
24969
afa6934dd8e8 8041679: Replace uses of StringBuffer with StringBuilder within core library classes
psandoz
parents: 16739
diff changeset
   181
                sb.append("CAPS_EXT_GRAD_SHADER|");
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   182
            }
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   183
            if ((caps & CAPS_EXT_TEXRECT) != 0) {
24969
afa6934dd8e8 8041679: Replace uses of StringBuffer with StringBuilder within core library classes
psandoz
parents: 16739
diff changeset
   184
                sb.append("CAPS_EXT_TEXRECT|");
887
0aab8d3fa11a 6725214: D3D: forward-port the new pipeline from 6u10
tdv
parents: 2
diff changeset
   185
            }
31882
0268245131a9 8087201: OGL: rendering of lcd text is slow
bae
parents: 31661
diff changeset
   186
            if ((caps & CAPS_EXT_TEXBARRIER) != 0) {
0268245131a9 8087201: OGL: rendering of lcd text is slow
bae
parents: 31661
diff changeset
   187
                sb.append("CAPS_EXT_TEXBARRIER|");
0268245131a9 8087201: OGL: rendering of lcd text is slow
bae
parents: 31661
diff changeset
   188
            }
24969
afa6934dd8e8 8041679: Replace uses of StringBuffer with StringBuilder within core library classes
psandoz
parents: 16739
diff changeset
   189
            return sb.toString();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
}