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); |
(...skipping 17 matching lines...) Expand all Loading... |
134 GET_PROC(ReadBuffer); | 137 GET_PROC(ReadBuffer); |
135 GET_PROC(ReadPixels); | 138 GET_PROC(ReadPixels); |
136 GET_PROC(Scissor); | 139 GET_PROC(Scissor); |
137 GET_PROC(ShaderSource); | 140 GET_PROC(ShaderSource); |
138 GET_PROC(StencilFunc); | 141 GET_PROC(StencilFunc); |
139 GET_PROC(StencilFuncSeparate); | 142 GET_PROC(StencilFuncSeparate); |
140 GET_PROC(StencilMask); | 143 GET_PROC(StencilMask); |
141 GET_PROC(StencilMaskSeparate); | 144 GET_PROC(StencilMaskSeparate); |
142 GET_PROC(StencilOp); | 145 GET_PROC(StencilOp); |
143 GET_PROC(StencilOpSeparate); | 146 GET_PROC(StencilOpSeparate); |
| 147 GET_PROC(TexGenf); |
| 148 GET_PROC(TexGenfv); |
| 149 GET_PROC(TexGeni); |
144 GET_PROC(TexImage2D); | 150 GET_PROC(TexImage2D); |
145 GET_PROC(TexParameteri); | 151 GET_PROC(TexParameteri); |
146 GET_PROC(TexParameteriv); | 152 GET_PROC(TexParameteriv); |
147 if (ver >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { | 153 if (ver >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { |
148 GET_PROC(TexStorage2D); | 154 GET_PROC(TexStorage2D); |
149 } else if (extensions.has("GL_EXT_texture_storage")) { | 155 } else if (extensions.has("GL_EXT_texture_storage")) { |
150 GET_PROC_SUFFIX(TexStorage2D, EXT); | 156 GET_PROC_SUFFIX(TexStorage2D, EXT); |
151 } | 157 } |
152 GET_PROC(TexSubImage2D); | 158 GET_PROC(TexSubImage2D); |
153 GET_PROC(Uniform1f); | 159 GET_PROC(Uniform1f); |
(...skipping 13 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 |