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/GrGLExtensions.h" | 10 #include "gl/GrGLExtensions.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 interface->fGetTexLevelParameteriv = glGetTexLevelParameteriv; | 116 interface->fGetTexLevelParameteriv = glGetTexLevelParameteriv; |
117 GR_GL_GET_PROC(GenQueries); | 117 GR_GL_GET_PROC(GenQueries); |
118 interface->fGenTextures = glGenTextures; | 118 interface->fGenTextures = glGenTextures; |
119 GR_GL_GET_PROC(GetUniformLocation); | 119 GR_GL_GET_PROC(GetUniformLocation); |
120 interface->fLineWidth = glLineWidth; | 120 interface->fLineWidth = glLineWidth; |
121 GR_GL_GET_PROC(LinkProgram); | 121 GR_GL_GET_PROC(LinkProgram); |
122 GR_GL_GET_PROC(MapBuffer); | 122 GR_GL_GET_PROC(MapBuffer); |
123 interface->fPixelStorei = glPixelStorei; | 123 interface->fPixelStorei = glPixelStorei; |
124 interface->fReadBuffer = glReadBuffer; | 124 interface->fReadBuffer = glReadBuffer; |
125 interface->fReadPixels = glReadPixels; | 125 interface->fReadPixels = glReadPixels; |
126 if (extensions.has("GL_NV_framebuffer_multisample_coverage")) { | |
127 GR_GL_GET_PROC_SUFFIX(RenderbufferStorageMultisampleCoverage, NV); | |
128 } | |
129 interface->fScissor = glScissor; | 126 interface->fScissor = glScissor; |
130 GR_GL_GET_PROC(ShaderSource); | 127 GR_GL_GET_PROC(ShaderSource); |
131 interface->fStencilFunc = glStencilFunc; | 128 interface->fStencilFunc = glStencilFunc; |
132 GR_GL_GET_PROC(StencilFuncSeparate); | 129 GR_GL_GET_PROC(StencilFuncSeparate); |
133 interface->fStencilMask = glStencilMask; | 130 interface->fStencilMask = glStencilMask; |
134 GR_GL_GET_PROC(StencilMaskSeparate); | 131 GR_GL_GET_PROC(StencilMaskSeparate); |
135 interface->fStencilOp = glStencilOp; | 132 interface->fStencilOp = glStencilOp; |
136 GR_GL_GET_PROC(StencilOpSeparate); | 133 GR_GL_GET_PROC(StencilOpSeparate); |
137 interface->fTexImage2D = glTexImage2D; | 134 interface->fTexImage2D = glTexImage2D; |
138 interface->fTexGenf = glTexGenf; | 135 interface->fTexGenf = glTexGenf; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 GR_GL_GET_PROC_SUFFIX(PointAlongPath, NV); | 275 GR_GL_GET_PROC_SUFFIX(PointAlongPath, NV); |
279 } | 276 } |
280 | 277 |
281 interface->fBindingsExported = kDesktop_GrGLBinding; | 278 interface->fBindingsExported = kDesktop_GrGLBinding; |
282 | 279 |
283 return interface; | 280 return interface; |
284 } else { | 281 } else { |
285 return NULL; | 282 return NULL; |
286 } | 283 } |
287 } | 284 } |
OLD | NEW |