| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 extensions.has("GL_ARB_imaging") || | 72 extensions.has("GL_ARB_imaging") || |
| 73 extensions.has("GL_EXT_blend_color")) { | 73 extensions.has("GL_EXT_blend_color")) { |
| 74 GET_PROC(BlendColor); | 74 GET_PROC(BlendColor); |
| 75 } | 75 } |
| 76 | 76 |
| 77 GET_PROC(BufferData); | 77 GET_PROC(BufferData); |
| 78 GET_PROC(BufferSubData); | 78 GET_PROC(BufferSubData); |
| 79 GET_PROC(Clear); | 79 GET_PROC(Clear); |
| 80 GET_PROC(ClearColor); | 80 GET_PROC(ClearColor); |
| 81 GET_PROC(ClearStencil); | 81 GET_PROC(ClearStencil); |
| 82 GET_PROC(ClientActiveTexture); | |
| 83 GET_PROC(ColorMask); | 82 GET_PROC(ColorMask); |
| 84 GET_PROC(CompileShader); | 83 GET_PROC(CompileShader); |
| 85 GET_PROC(CompressedTexImage2D); | 84 GET_PROC(CompressedTexImage2D); |
| 86 GET_PROC(CopyTexSubImage2D); | 85 GET_PROC(CopyTexSubImage2D); |
| 87 GET_PROC(CreateProgram); | 86 GET_PROC(CreateProgram); |
| 88 GET_PROC(CreateShader); | 87 GET_PROC(CreateShader); |
| 89 GET_PROC(CullFace); | 88 GET_PROC(CullFace); |
| 90 GET_PROC(DeleteBuffers); | 89 GET_PROC(DeleteBuffers); |
| 91 GET_PROC(DeleteProgram); | 90 GET_PROC(DeleteProgram); |
| 92 GET_PROC(DeleteQueries); | 91 GET_PROC(DeleteQueries); |
| 93 GET_PROC(DeleteShader); | 92 GET_PROC(DeleteShader); |
| 94 GET_PROC(DeleteTextures); | 93 GET_PROC(DeleteTextures); |
| 95 GET_PROC(DepthMask); | 94 GET_PROC(DepthMask); |
| 96 GET_PROC(Disable); | 95 GET_PROC(Disable); |
| 97 GET_PROC(DisableClientState); | |
| 98 GET_PROC(DisableVertexAttribArray); | 96 GET_PROC(DisableVertexAttribArray); |
| 99 GET_PROC(DrawArrays); | 97 GET_PROC(DrawArrays); |
| 100 GET_PROC(DrawBuffer); | 98 GET_PROC(DrawBuffer); |
| 101 GET_PROC(DrawBuffers); | 99 GET_PROC(DrawBuffers); |
| 102 GET_PROC(DrawElements); | 100 GET_PROC(DrawElements); |
| 103 GET_PROC(Enable); | 101 GET_PROC(Enable); |
| 104 GET_PROC(EnableClientState); | |
| 105 GET_PROC(EnableVertexAttribArray); | 102 GET_PROC(EnableVertexAttribArray); |
| 106 GET_PROC(EndQuery); | 103 GET_PROC(EndQuery); |
| 107 GET_PROC(Finish); | 104 GET_PROC(Finish); |
| 108 GET_PROC(Flush); | 105 GET_PROC(Flush); |
| 109 GET_PROC(FrontFace); | 106 GET_PROC(FrontFace); |
| 110 GET_PROC(GenBuffers); | 107 GET_PROC(GenBuffers); |
| 111 GET_PROC(GenerateMipmap); | 108 GET_PROC(GenerateMipmap); |
| 112 GET_PROC(GenQueries); | 109 GET_PROC(GenQueries); |
| 113 GET_PROC(GetBufferParameteriv); | 110 GET_PROC(GetBufferParameteriv); |
| 114 GET_PROC(GetError); | 111 GET_PROC(GetError); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 135 GET_PROC(ReadBuffer); | 132 GET_PROC(ReadBuffer); |
| 136 GET_PROC(ReadPixels); | 133 GET_PROC(ReadPixels); |
| 137 GET_PROC(Scissor); | 134 GET_PROC(Scissor); |
| 138 GET_PROC(ShaderSource); | 135 GET_PROC(ShaderSource); |
| 139 GET_PROC(StencilFunc); | 136 GET_PROC(StencilFunc); |
| 140 GET_PROC(StencilFuncSeparate); | 137 GET_PROC(StencilFuncSeparate); |
| 141 GET_PROC(StencilMask); | 138 GET_PROC(StencilMask); |
| 142 GET_PROC(StencilMaskSeparate); | 139 GET_PROC(StencilMaskSeparate); |
| 143 GET_PROC(StencilOp); | 140 GET_PROC(StencilOp); |
| 144 GET_PROC(StencilOpSeparate); | 141 GET_PROC(StencilOpSeparate); |
| 145 GET_PROC(TexGenf); | |
| 146 GET_PROC(TexGenfv); | 142 GET_PROC(TexGenfv); |
| 147 GET_PROC(TexGeni); | 143 GET_PROC(TexGeni); |
| 148 GET_PROC(TexImage2D); | 144 GET_PROC(TexImage2D); |
| 149 GET_PROC(TexParameteri); | 145 GET_PROC(TexParameteri); |
| 150 GET_PROC(TexParameteriv); | 146 GET_PROC(TexParameteriv); |
| 151 if (ver >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { | 147 if (ver >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { |
| 152 GET_PROC(TexStorage2D); | 148 GET_PROC(TexStorage2D); |
| 153 } else if (extensions.has("GL_EXT_texture_storage")) { | 149 } else if (extensions.has("GL_EXT_texture_storage")) { |
| 154 GET_PROC_SUFFIX(TexStorage2D, EXT); | 150 GET_PROC_SUFFIX(TexStorage2D, EXT); |
| 155 } | 151 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 171 GET_PROC(Uniform4fv); | 167 GET_PROC(Uniform4fv); |
| 172 GET_PROC(Uniform4iv); | 168 GET_PROC(Uniform4iv); |
| 173 GET_PROC(Uniform4fv); | 169 GET_PROC(Uniform4fv); |
| 174 GET_PROC(UniformMatrix2fv); | 170 GET_PROC(UniformMatrix2fv); |
| 175 GET_PROC(UniformMatrix3fv); | 171 GET_PROC(UniformMatrix3fv); |
| 176 GET_PROC(UniformMatrix4fv); | 172 GET_PROC(UniformMatrix4fv); |
| 177 GET_PROC(UnmapBuffer); | 173 GET_PROC(UnmapBuffer); |
| 178 GET_PROC(UseProgram); | 174 GET_PROC(UseProgram); |
| 179 GET_PROC(VertexAttrib4fv); | 175 GET_PROC(VertexAttrib4fv); |
| 180 GET_PROC(VertexAttribPointer); | 176 GET_PROC(VertexAttribPointer); |
| 181 GET_PROC(VertexPointer); | |
| 182 GET_PROC(Viewport); | 177 GET_PROC(Viewport); |
| 183 | 178 |
| 184 if (ver >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_object")) { | 179 if (ver >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_object")) { |
| 185 // no ARB suffix for GL_ARB_vertex_array_object | 180 // no ARB suffix for GL_ARB_vertex_array_object |
| 186 GET_PROC(BindVertexArray); | 181 GET_PROC(BindVertexArray); |
| 187 GET_PROC(DeleteVertexArrays); | 182 GET_PROC(DeleteVertexArrays); |
| 188 GET_PROC(GenVertexArrays); | 183 GET_PROC(GenVertexArrays); |
| 189 } | 184 } |
| 190 | 185 |
| 191 if (ver >= GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) { | 186 if (ver >= GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 238 |
| 244 if (extensions.has("GL_EXT_debug_marker")) { | 239 if (extensions.has("GL_EXT_debug_marker")) { |
| 245 GET_PROC_SUFFIX(InsertEventMarker, EXT); | 240 GET_PROC_SUFFIX(InsertEventMarker, EXT); |
| 246 GET_PROC_SUFFIX(PushGroupMarker, EXT); | 241 GET_PROC_SUFFIX(PushGroupMarker, EXT); |
| 247 GET_PROC_SUFFIX(PopGroupMarker, EXT); | 242 GET_PROC_SUFFIX(PopGroupMarker, EXT); |
| 248 } | 243 } |
| 249 | 244 |
| 250 interface->fExtensions.swap(&extensions); | 245 interface->fExtensions.swap(&extensions); |
| 251 return interface; | 246 return interface; |
| 252 } | 247 } |
| OLD | NEW |