Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp

Issue 23513006: Add glTexGen funcs to interface (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: mesa Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "gl/GrGLExtensions.h" 9 #include "gl/GrGLExtensions.h"
10 #include "gl/GrGLInterface.h" 10 #include "gl/GrGLInterface.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 extensions.has("GL_ARB_imaging") || 56 extensions.has("GL_ARB_imaging") ||
57 extensions.has("GL_EXT_blend_color")) { 57 extensions.has("GL_EXT_blend_color")) {
58 GR_GL_GET_PROC(BlendColor); 58 GR_GL_GET_PROC(BlendColor);
59 } 59 }
60 60
61 GR_GL_GET_PROC(BufferData); 61 GR_GL_GET_PROC(BufferData);
62 GR_GL_GET_PROC(BufferSubData); 62 GR_GL_GET_PROC(BufferSubData);
63 GR_GL_GET_PROC(Clear); 63 GR_GL_GET_PROC(Clear);
64 GR_GL_GET_PROC(ClearColor); 64 GR_GL_GET_PROC(ClearColor);
65 GR_GL_GET_PROC(ClearStencil); 65 GR_GL_GET_PROC(ClearStencil);
66 GR_GL_GET_PROC(ClientActiveTexture);
66 GR_GL_GET_PROC(ColorMask); 67 GR_GL_GET_PROC(ColorMask);
67 GR_GL_GET_PROC(CompileShader); 68 GR_GL_GET_PROC(CompileShader);
68 GR_GL_GET_PROC(CompressedTexImage2D); 69 GR_GL_GET_PROC(CompressedTexImage2D);
69 GR_GL_GET_PROC(CopyTexSubImage2D); 70 GR_GL_GET_PROC(CopyTexSubImage2D);
70 GR_GL_GET_PROC(CreateProgram); 71 GR_GL_GET_PROC(CreateProgram);
71 GR_GL_GET_PROC(CreateShader); 72 GR_GL_GET_PROC(CreateShader);
72 GR_GL_GET_PROC(CullFace); 73 GR_GL_GET_PROC(CullFace);
73 GR_GL_GET_PROC(DeleteBuffers); 74 GR_GL_GET_PROC(DeleteBuffers);
74 GR_GL_GET_PROC(DeleteProgram); 75 GR_GL_GET_PROC(DeleteProgram);
75 GR_GL_GET_PROC(DeleteQueries); 76 GR_GL_GET_PROC(DeleteQueries);
76 GR_GL_GET_PROC(DeleteShader); 77 GR_GL_GET_PROC(DeleteShader);
77 GR_GL_GET_PROC(DeleteTextures); 78 GR_GL_GET_PROC(DeleteTextures);
78 GR_GL_GET_PROC(DepthMask); 79 GR_GL_GET_PROC(DepthMask);
79 GR_GL_GET_PROC(Disable); 80 GR_GL_GET_PROC(Disable);
81 GR_GL_GET_PROC(DisableClientState);
80 GR_GL_GET_PROC(DisableVertexAttribArray); 82 GR_GL_GET_PROC(DisableVertexAttribArray);
81 GR_GL_GET_PROC(DrawArrays); 83 GR_GL_GET_PROC(DrawArrays);
82 GR_GL_GET_PROC(DrawBuffer); 84 GR_GL_GET_PROC(DrawBuffer);
83 GR_GL_GET_PROC(DrawBuffers); 85 GR_GL_GET_PROC(DrawBuffers);
84 GR_GL_GET_PROC(DrawElements); 86 GR_GL_GET_PROC(DrawElements);
85 GR_GL_GET_PROC(Enable); 87 GR_GL_GET_PROC(Enable);
88 GR_GL_GET_PROC(EnableClientState);
86 GR_GL_GET_PROC(EnableVertexAttribArray); 89 GR_GL_GET_PROC(EnableVertexAttribArray);
87 GR_GL_GET_PROC(EndQuery); 90 GR_GL_GET_PROC(EndQuery);
88 GR_GL_GET_PROC(Finish); 91 GR_GL_GET_PROC(Finish);
89 GR_GL_GET_PROC(Flush); 92 GR_GL_GET_PROC(Flush);
90 GR_GL_GET_PROC(FrontFace); 93 GR_GL_GET_PROC(FrontFace);
91 GR_GL_GET_PROC(GenBuffers); 94 GR_GL_GET_PROC(GenBuffers);
92 GR_GL_GET_PROC(GenerateMipmap); 95 GR_GL_GET_PROC(GenerateMipmap);
93 GR_GL_GET_PROC(GenQueries); 96 GR_GL_GET_PROC(GenQueries);
94 GR_GL_GET_PROC(GetBufferParameteriv); 97 GR_GL_GET_PROC(GetBufferParameteriv);
95 GR_GL_GET_PROC(GetError); 98 GR_GL_GET_PROC(GetError);
(...skipping 13 matching lines...) Expand all
109 GR_GL_GET_PROC(GetQueryiv); 112 GR_GL_GET_PROC(GetQueryiv);
110 GR_GL_GET_PROC(GetShaderInfoLog); 113 GR_GL_GET_PROC(GetShaderInfoLog);
111 GR_GL_GET_PROC(GetShaderiv); 114 GR_GL_GET_PROC(GetShaderiv);
112 GR_GL_GET_PROC(GetString); 115 GR_GL_GET_PROC(GetString);
113 GR_GL_GET_PROC(GetStringi); 116 GR_GL_GET_PROC(GetStringi);
114 GR_GL_GET_PROC(GetTexLevelParameteriv); 117 GR_GL_GET_PROC(GetTexLevelParameteriv);
115 GR_GL_GET_PROC(GenTextures); 118 GR_GL_GET_PROC(GenTextures);
116 GR_GL_GET_PROC(GetUniformLocation); 119 GR_GL_GET_PROC(GetUniformLocation);
117 GR_GL_GET_PROC(LineWidth); 120 GR_GL_GET_PROC(LineWidth);
118 GR_GL_GET_PROC(LinkProgram); 121 GR_GL_GET_PROC(LinkProgram);
122 GR_GL_GET_PROC(LoadIdentity);
123 GR_GL_GET_PROC(LoadMatrixf);
124 GR_GL_GET_PROC(MatrixMode);
119 GR_GL_GET_PROC(MapBuffer); 125 GR_GL_GET_PROC(MapBuffer);
120 GR_GL_GET_PROC(PixelStorei); 126 GR_GL_GET_PROC(PixelStorei);
121 GR_GL_GET_PROC(ReadBuffer); 127 GR_GL_GET_PROC(ReadBuffer);
122 GR_GL_GET_PROC(ReadPixels); 128 GR_GL_GET_PROC(ReadPixels);
123 GR_GL_GET_PROC(Scissor); 129 GR_GL_GET_PROC(Scissor);
124 GR_GL_GET_PROC(ShaderSource); 130 GR_GL_GET_PROC(ShaderSource);
125 GR_GL_GET_PROC(StencilFunc); 131 GR_GL_GET_PROC(StencilFunc);
126 GR_GL_GET_PROC(StencilFuncSeparate); 132 GR_GL_GET_PROC(StencilFuncSeparate);
127 GR_GL_GET_PROC(StencilMask); 133 GR_GL_GET_PROC(StencilMask);
128 GR_GL_GET_PROC(StencilMaskSeparate); 134 GR_GL_GET_PROC(StencilMaskSeparate);
129 GR_GL_GET_PROC(StencilOp); 135 GR_GL_GET_PROC(StencilOp);
130 GR_GL_GET_PROC(StencilOpSeparate); 136 GR_GL_GET_PROC(StencilOpSeparate);
137 GR_GL_GET_PROC(TexGenf);
138 GR_GL_GET_PROC(TexGenfv);
139 GR_GL_GET_PROC(TexGeni);
131 GR_GL_GET_PROC(TexImage2D) 140 GR_GL_GET_PROC(TexImage2D)
132 GR_GL_GET_PROC(TexParameteri); 141 GR_GL_GET_PROC(TexParameteri);
133 GR_GL_GET_PROC(TexParameteriv); 142 GR_GL_GET_PROC(TexParameteriv);
134 GR_GL_GET_PROC(TexStorage2D); 143 GR_GL_GET_PROC(TexStorage2D);
135 if (NULL == interface->fTexStorage2D) { 144 if (NULL == interface->fTexStorage2D) {
136 GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT); 145 GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT);
137 } 146 }
138 GR_GL_GET_PROC(TexSubImage2D); 147 GR_GL_GET_PROC(TexSubImage2D);
139 GR_GL_GET_PROC(Uniform1f); 148 GR_GL_GET_PROC(Uniform1f);
140 GR_GL_GET_PROC(Uniform1i); 149 GR_GL_GET_PROC(Uniform1i);
(...skipping 11 matching lines...) Expand all
152 GR_GL_GET_PROC(Uniform4i); 161 GR_GL_GET_PROC(Uniform4i);
153 GR_GL_GET_PROC(Uniform4fv); 162 GR_GL_GET_PROC(Uniform4fv);
154 GR_GL_GET_PROC(Uniform4iv); 163 GR_GL_GET_PROC(Uniform4iv);
155 GR_GL_GET_PROC(UniformMatrix2fv); 164 GR_GL_GET_PROC(UniformMatrix2fv);
156 GR_GL_GET_PROC(UniformMatrix3fv); 165 GR_GL_GET_PROC(UniformMatrix3fv);
157 GR_GL_GET_PROC(UniformMatrix4fv); 166 GR_GL_GET_PROC(UniformMatrix4fv);
158 GR_GL_GET_PROC(UnmapBuffer); 167 GR_GL_GET_PROC(UnmapBuffer);
159 GR_GL_GET_PROC(UseProgram); 168 GR_GL_GET_PROC(UseProgram);
160 GR_GL_GET_PROC(VertexAttrib4fv); 169 GR_GL_GET_PROC(VertexAttrib4fv);
161 GR_GL_GET_PROC(VertexAttribPointer); 170 GR_GL_GET_PROC(VertexAttribPointer);
171 GR_GL_GET_PROC(VertexPointer);
162 GR_GL_GET_PROC(Viewport); 172 GR_GL_GET_PROC(Viewport);
163 173
164 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_objec t")) { 174 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_objec t")) {
165 // no ARB suffix for GL_ARB_vertex_array_object 175 // no ARB suffix for GL_ARB_vertex_array_object
166 GR_GL_GET_PROC(BindVertexArray); 176 GR_GL_GET_PROC(BindVertexArray);
167 GR_GL_GET_PROC(DeleteVertexArrays); 177 GR_GL_GET_PROC(DeleteVertexArrays);
168 GR_GL_GET_PROC(GenVertexArrays); 178 GR_GL_GET_PROC(GenVertexArrays);
169 } 179 }
170 180
171 // First look for GL3.0 FBO or GL_ARB_framebuffer_object (same since 181 // First look for GL3.0 FBO or GL_ARB_framebuffer_object (same since
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 delete interface; 219 delete interface;
210 return NULL; 220 return NULL;
211 } 221 }
212 GR_GL_GET_PROC(BindFragDataLocationIndexed); 222 GR_GL_GET_PROC(BindFragDataLocationIndexed);
213 interface->fBindingsExported = kDesktop_GrGLBinding; 223 interface->fBindingsExported = kDesktop_GrGLBinding;
214 return interface; 224 return interface;
215 } else { 225 } else {
216 return NULL; 226 return NULL;
217 } 227 }
218 } 228 }
OLDNEW
« no previous file with comments | « src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp ('k') | src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698