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

Side by Side Diff: src/gpu/gl/win/GrGLCreateNativeInterface_win.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
« no previous file with comments | « src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 #include "gl/GrGLExtensions.h" 10 #include "gl/GrGLExtensions.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 SET_PROC(Clear) 91 SET_PROC(Clear)
92 SET_PROC(ClearColor) 92 SET_PROC(ClearColor)
93 SET_PROC(ClearStencil) 93 SET_PROC(ClearStencil)
94 SET_PROC(ColorMask) 94 SET_PROC(ColorMask)
95 SET_PROC(CopyTexSubImage2D) 95 SET_PROC(CopyTexSubImage2D)
96 SET_PROC(CullFace) 96 SET_PROC(CullFace)
97 SET_PROC(DeleteTextures) 97 SET_PROC(DeleteTextures)
98 SET_PROC(DepthMask) 98 SET_PROC(DepthMask)
99 SET_PROC(Disable) 99 SET_PROC(Disable)
100 SET_PROC(DisableClientState)
100 SET_PROC(DrawArrays) 101 SET_PROC(DrawArrays)
101 SET_PROC(DrawElements) 102 SET_PROC(DrawElements)
102 SET_PROC(DrawBuffer) 103 SET_PROC(DrawBuffer)
103 SET_PROC(Enable) 104 SET_PROC(Enable)
105 SET_PROC(EnableClientState)
104 SET_PROC(FrontFace) 106 SET_PROC(FrontFace)
105 SET_PROC(Finish) 107 SET_PROC(Finish)
106 SET_PROC(Flush) 108 SET_PROC(Flush)
107 SET_PROC(GenTextures) 109 SET_PROC(GenTextures)
108 SET_PROC(GetError) 110 SET_PROC(GetError)
109 SET_PROC(GetIntegerv) 111 SET_PROC(GetIntegerv)
110 SET_PROC(GetString) 112 SET_PROC(GetString)
111 SET_PROC(GetTexLevelParameteriv) 113 SET_PROC(GetTexLevelParameteriv)
112 SET_PROC(LineWidth) 114 SET_PROC(LineWidth)
113 SET_PROC(LoadIdentity) 115 SET_PROC(LoadIdentity)
114 SET_PROC(LoadMatrixf) 116 SET_PROC(LoadMatrixf)
115 SET_PROC(MatrixMode) 117 SET_PROC(MatrixMode)
116 SET_PROC(PixelStorei) 118 SET_PROC(PixelStorei)
117 SET_PROC(ReadBuffer) 119 SET_PROC(ReadBuffer)
118 SET_PROC(ReadPixels) 120 SET_PROC(ReadPixels)
119 SET_PROC(Scissor) 121 SET_PROC(Scissor)
120 SET_PROC(StencilFunc) 122 SET_PROC(StencilFunc)
121 SET_PROC(StencilMask) 123 SET_PROC(StencilMask)
122 SET_PROC(StencilOp) 124 SET_PROC(StencilOp)
125 SET_PROC(TexGenf)
126 SET_PROC(TexGenfv)
127 SET_PROC(TexGeni)
123 SET_PROC(TexImage2D) 128 SET_PROC(TexImage2D)
124 SET_PROC(TexParameteri) 129 SET_PROC(TexParameteri)
125 SET_PROC(TexParameteriv) 130 SET_PROC(TexParameteriv)
126 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { 131 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) {
127 WGL_SET_PROC(TexStorage2D); 132 WGL_SET_PROC(TexStorage2D);
128 } else if (extensions.has("GL_EXT_texture_storage")) { 133 } else if (extensions.has("GL_EXT_texture_storage")) {
129 WGL_SET_PROC_SUFFIX(TexStorage2D, EXT); 134 WGL_SET_PROC_SUFFIX(TexStorage2D, EXT);
130 } 135 }
131 SET_PROC(TexSubImage2D) 136 SET_PROC(TexSubImage2D)
132 SET_PROC(Viewport) 137 SET_PROC(Viewport)
138 SET_PROC(VertexPointer)
133 139
134 WGL_SET_PROC(ActiveTexture); 140 WGL_SET_PROC(ActiveTexture);
135 WGL_SET_PROC(AttachShader); 141 WGL_SET_PROC(AttachShader);
136 WGL_SET_PROC(BeginQuery); 142 WGL_SET_PROC(BeginQuery);
137 WGL_SET_PROC(BindAttribLocation); 143 WGL_SET_PROC(BindAttribLocation);
138 WGL_SET_PROC(BindBuffer); 144 WGL_SET_PROC(BindBuffer);
139 WGL_SET_PROC(BindFragDataLocation); 145 WGL_SET_PROC(BindFragDataLocation);
140 WGL_SET_PROC(BufferData); 146 WGL_SET_PROC(BufferData);
141 WGL_SET_PROC(BufferSubData); 147 WGL_SET_PROC(BufferSubData);
148 WGL_SET_PROC(ClientActiveTexture);
142 WGL_SET_PROC(CompileShader); 149 WGL_SET_PROC(CompileShader);
143 WGL_SET_PROC(CompressedTexImage2D); 150 WGL_SET_PROC(CompressedTexImage2D);
144 WGL_SET_PROC(CreateProgram); 151 WGL_SET_PROC(CreateProgram);
145 WGL_SET_PROC(CreateShader); 152 WGL_SET_PROC(CreateShader);
146 WGL_SET_PROC(DeleteBuffers); 153 WGL_SET_PROC(DeleteBuffers);
147 WGL_SET_PROC(DeleteQueries); 154 WGL_SET_PROC(DeleteQueries);
148 WGL_SET_PROC(DeleteProgram); 155 WGL_SET_PROC(DeleteProgram);
149 WGL_SET_PROC(DeleteShader); 156 WGL_SET_PROC(DeleteShader);
150 WGL_SET_PROC(DisableVertexAttribArray); 157 WGL_SET_PROC(DisableVertexAttribArray);
151 WGL_SET_PROC(DrawBuffers); 158 WGL_SET_PROC(DrawBuffers);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); 314 WGL_SET_PROC_SUFFIX(PointAlongPath, NV);
308 } 315 }
309 316
310 interface->fBindingsExported = kDesktop_GrGLBinding; 317 interface->fBindingsExported = kDesktop_GrGLBinding;
311 318
312 return interface; 319 return interface;
313 } else { 320 } else {
314 return NULL; 321 return NULL;
315 } 322 }
316 } 323 }
OLDNEW
« no previous file with comments | « src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698