skia2/include/gpu/gl
kkinnunen 32b9a3b02e Add functions to support NV_path_rendering in OpenGL ES
Add OpenGL ES extension functions needed to support NV_path_rendering in OpenGL
ES.

The added glProgramPathFragmentInputGenNV call is defined in NV_path_rendering
revision 30, similar to following:

    Append to the end of the "Shader Inputs" subsection of Section 3.12.2
    "Shader Execution":

    The command

        void ProgramPathFragmentInputGenNV(uint program,
                                           int location,
                                           enum genMode,
                                           int components,
                                           const float *coeffs);

    controls how a user-defined (non-built-in) fragment input of a
    GLSL program object is computed for fragment shading operations that
    occur as a result of CoverFillPathNV or CoverStrokePathNV.

    /program/ names a GLSL program object.  If /program/ has not been
    successfully linked, the error INVALID_OPERATION is generated.

    The given fragment input generation state is loaded into the fragment
    input variable location identified by /location/.  This location
    is a value returned either by GetProgramResourceLocation with a
    /programInterface/ of FRAGMENT_INPUT_NV and a given fragment shader
    input variable name or by GetProgramResourceiv with FRAGMENT_INPUT_NV
    for the /programInterface/ and LOCATION for the property for a given
    fragment input resource index.

    ....

glProgramPathFragmentInputGenNV will be used instead of glPathTexGen,
because the latter depends on fixed function pipeline that is not
exposed in ES.

Also add glGetProgramResourceLocation from OpenGL 4.3 or
ARB_program_interface_query.

Also add FRAGMENT_INPUT define to be used with glGetProgramResourceLocation.

The added functions are not used yet, but they're needed when implementing
NV_path_rendering support for OpenGL ES. They can also be used on OpenGL.

Remove uncalled NV_path_rendering functions, so they do not cause confusion
or take space in the interface definition. The ones that are later used
can be re-added when needed.

Remove definitions NV_path_rendering that are for NV_path_rendering function
parameters that are not used. The ones that are later used
can be re-added when needed.

Committed: https://skia.googlesource.com/skia/+/4a995dfff2ecf91e8bf999d77e3218cec596232c

R=bsalomon@google.com

Author: kkinnunen@nvidia.com

Review URL: https://codereview.chromium.org/345723002
2014-07-02 22:56:36 -07:00
..
GrGLConfig_chrome.h Replace GR_*_BUILD by their SK_BUILD_FOR_* equivalents. 2013-09-25 20:57:51 +00:00
GrGLConfig.h Turn NVPR on by default (but off in tools). 2014-01-24 20:49:44 +00:00
GrGLExtensions.h Add SK_API to GrGLExtensions 2014-02-25 02:14:57 +00:00
GrGLFunctions.h Add functions to support NV_path_rendering in OpenGL ES 2014-07-02 22:56:36 -07:00
GrGLInterface.h Add functions to support NV_path_rendering in OpenGL ES 2014-07-02 22:56:36 -07:00
SkANGLEGLContext.h Support using OpenGL ES context on desktop 2014-06-30 06:36:31 -07:00
SkDebugGLContext.h Support using OpenGL ES context on desktop 2014-06-30 06:36:31 -07:00
SkGLContextHelper.h When performing offscreen rendering on windows, attempt to use a pbuffer context. 2014-07-01 07:20:11 -07:00
SkMesaGLContext.h Support using OpenGL ES context on desktop 2014-06-30 06:36:31 -07:00
SkNativeGLContext.h When performing offscreen rendering on windows, attempt to use a pbuffer context. 2014-07-01 07:20:11 -07:00
SkNullGLContext.h Support using OpenGL ES context on desktop 2014-06-30 06:36:31 -07:00