| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "gl/GrGLInterface.h" | 10 #include "gl/GrGLInterface.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 extensions.has("GL_ARB_imaging") || | 77 extensions.has("GL_ARB_imaging") || |
| 78 extensions.has("GL_EXT_blend_color")) { | 78 extensions.has("GL_EXT_blend_color")) { |
| 79 GET_PROC(BlendColor); | 79 GET_PROC(BlendColor); |
| 80 } | 80 } |
| 81 | 81 |
| 82 GET_PROC(BufferData); | 82 GET_PROC(BufferData); |
| 83 GET_PROC(BufferSubData); | 83 GET_PROC(BufferSubData); |
| 84 GET_PROC(Clear); | 84 GET_PROC(Clear); |
| 85 GET_PROC(ClearColor); | 85 GET_PROC(ClearColor); |
| 86 GET_PROC(ClearStencil); | 86 GET_PROC(ClearStencil); |
| 87 GET_PROC(ClientActiveTexture); |
| 87 GET_PROC(ColorMask); | 88 GET_PROC(ColorMask); |
| 88 GET_PROC(CompileShader); | 89 GET_PROC(CompileShader); |
| 89 GET_PROC(CompressedTexImage2D); | 90 GET_PROC(CompressedTexImage2D); |
| 90 GET_PROC(CopyTexSubImage2D); | 91 GET_PROC(CopyTexSubImage2D); |
| 91 GET_PROC(CreateProgram); | 92 GET_PROC(CreateProgram); |
| 92 GET_PROC(CreateShader); | 93 GET_PROC(CreateShader); |
| 93 GET_PROC(CullFace); | 94 GET_PROC(CullFace); |
| 94 GET_PROC(DeleteBuffers); | 95 GET_PROC(DeleteBuffers); |
| 95 GET_PROC(DeleteProgram); | 96 GET_PROC(DeleteProgram); |
| 96 GET_PROC(DeleteQueries); | 97 GET_PROC(DeleteQueries); |
| 97 GET_PROC(DeleteShader); | 98 GET_PROC(DeleteShader); |
| 98 GET_PROC(DeleteTextures); | 99 GET_PROC(DeleteTextures); |
| 99 GET_PROC(DepthMask); | 100 GET_PROC(DepthMask); |
| 100 GET_PROC(Disable); | 101 GET_PROC(Disable); |
| 102 GET_PROC(DisableClientState); |
| 101 GET_PROC(DisableVertexAttribArray); | 103 GET_PROC(DisableVertexAttribArray); |
| 102 GET_PROC(DrawArrays); | 104 GET_PROC(DrawArrays); |
| 103 GET_PROC(DrawBuffer); | 105 GET_PROC(DrawBuffer); |
| 104 GET_PROC(DrawBuffers); | 106 GET_PROC(DrawBuffers); |
| 105 GET_PROC(DrawElements); | 107 GET_PROC(DrawElements); |
| 106 GET_PROC(Enable); | 108 GET_PROC(Enable); |
| 109 GET_PROC(EnableClientState); |
| 107 GET_PROC(EnableVertexAttribArray); | 110 GET_PROC(EnableVertexAttribArray); |
| 108 GET_PROC(EndQuery); | 111 GET_PROC(EndQuery); |
| 109 GET_PROC(Finish); | 112 GET_PROC(Finish); |
| 110 GET_PROC(Flush); | 113 GET_PROC(Flush); |
| 111 GET_PROC(FrontFace); | 114 GET_PROC(FrontFace); |
| 112 GET_PROC(GenBuffers); | 115 GET_PROC(GenBuffers); |
| 113 GET_PROC(GenerateMipmap); | 116 GET_PROC(GenerateMipmap); |
| 114 GET_PROC(GenQueries); | 117 GET_PROC(GenQueries); |
| 115 GET_PROC(GetBufferParameteriv); | 118 GET_PROC(GetBufferParameteriv); |
| 116 GET_PROC(GetError); | 119 GET_PROC(GetError); |
| 117 GET_PROC(GetIntegerv); | 120 GET_PROC(GetIntegerv); |
| 118 GET_PROC(GetProgramInfoLog); | 121 GET_PROC(GetProgramInfoLog); |
| 119 GET_PROC(GetProgramiv); | 122 GET_PROC(GetProgramiv); |
| 120 GET_PROC(GetQueryiv); | 123 GET_PROC(GetQueryiv); |
| 121 GET_PROC(GetQueryObjectiv); | 124 GET_PROC(GetQueryObjectiv); |
| 122 GET_PROC(GetQueryObjectuiv); | 125 GET_PROC(GetQueryObjectuiv); |
| 123 GET_PROC(GetShaderInfoLog); | 126 GET_PROC(GetShaderInfoLog); |
| 124 GET_PROC(GetShaderiv); | 127 GET_PROC(GetShaderiv); |
| 125 GET_PROC(GetString); | 128 GET_PROC(GetString); |
| 126 GET_PROC(GetStringi); | 129 GET_PROC(GetStringi); |
| 130 GET_PROC(GetTexGenf); |
| 131 GET_PROC(GetTexGenfv); |
| 132 GET_PROC(GetTexGeni); |
| 127 GET_PROC(GetTexLevelParameteriv); | 133 GET_PROC(GetTexLevelParameteriv); |
| 128 GET_PROC(GenTextures); | 134 GET_PROC(GenTextures); |
| 129 GET_PROC(GetUniformLocation); | 135 GET_PROC(GetUniformLocation); |
| 130 GET_PROC(LineWidth); | 136 GET_PROC(LineWidth); |
| 131 GET_PROC(LinkProgram); | 137 GET_PROC(LinkProgram); |
| 132 GET_PROC(MapBuffer); | 138 GET_PROC(MapBuffer); |
| 133 GET_PROC(PixelStorei); | 139 GET_PROC(PixelStorei); |
| 134 GET_PROC(ReadBuffer); | 140 GET_PROC(ReadBuffer); |
| 135 GET_PROC(ReadPixels); | 141 GET_PROC(ReadPixels); |
| 136 GET_PROC(Scissor); | 142 GET_PROC(Scissor); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 167 GET_PROC(Uniform4fv); | 173 GET_PROC(Uniform4fv); |
| 168 GET_PROC(Uniform4iv); | 174 GET_PROC(Uniform4iv); |
| 169 GET_PROC(Uniform4fv); | 175 GET_PROC(Uniform4fv); |
| 170 GET_PROC(UniformMatrix2fv); | 176 GET_PROC(UniformMatrix2fv); |
| 171 GET_PROC(UniformMatrix3fv); | 177 GET_PROC(UniformMatrix3fv); |
| 172 GET_PROC(UniformMatrix4fv); | 178 GET_PROC(UniformMatrix4fv); |
| 173 GET_PROC(UnmapBuffer); | 179 GET_PROC(UnmapBuffer); |
| 174 GET_PROC(UseProgram); | 180 GET_PROC(UseProgram); |
| 175 GET_PROC(VertexAttrib4fv); | 181 GET_PROC(VertexAttrib4fv); |
| 176 GET_PROC(VertexAttribPointer); | 182 GET_PROC(VertexAttribPointer); |
| 183 GET_PROC(VertexPointer); |
| 177 GET_PROC(Viewport); | 184 GET_PROC(Viewport); |
| 178 | 185 |
| 179 if (ver >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_object"
)) { | 186 if (ver >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_object"
)) { |
| 180 // no ARB suffix for GL_ARB_vertex_array_object | 187 // no ARB suffix for GL_ARB_vertex_array_object |
| 181 GET_PROC(BindVertexArray); | 188 GET_PROC(BindVertexArray); |
| 182 GET_PROC(DeleteVertexArrays); | 189 GET_PROC(DeleteVertexArrays); |
| 183 GET_PROC(GenVertexArrays); | 190 GET_PROC(GenVertexArrays); |
| 184 } | 191 } |
| 185 | 192 |
| 186 if (ver >= GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) { | 193 if (ver >= GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 239 } |
| 233 } | 240 } |
| 234 if (ver >= GR_GL_VER(3,3) || extensions.has("GL_ARB_blend_func_extended"
)) { | 241 if (ver >= GR_GL_VER(3,3) || extensions.has("GL_ARB_blend_func_extended"
)) { |
| 235 // ARB extension doesn't use the ARB suffix on the function name | 242 // ARB extension doesn't use the ARB suffix on the function name |
| 236 GET_PROC(BindFragDataLocationIndexed); | 243 GET_PROC(BindFragDataLocationIndexed); |
| 237 } | 244 } |
| 238 } | 245 } |
| 239 glInterface.get()->ref(); | 246 glInterface.get()->ref(); |
| 240 return glInterface.get(); | 247 return glInterface.get(); |
| 241 } | 248 } |
| OLD | NEW |