| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 functions->fReadPixels = glReadPixels; | 124 functions->fReadPixels = glReadPixels; |
| 125 functions->fScissor = glScissor; | 125 functions->fScissor = glScissor; |
| 126 GR_GL_GET_PROC(ShaderSource); | 126 GR_GL_GET_PROC(ShaderSource); |
| 127 functions->fStencilFunc = glStencilFunc; | 127 functions->fStencilFunc = glStencilFunc; |
| 128 GR_GL_GET_PROC(StencilFuncSeparate); | 128 GR_GL_GET_PROC(StencilFuncSeparate); |
| 129 functions->fStencilMask = glStencilMask; | 129 functions->fStencilMask = glStencilMask; |
| 130 GR_GL_GET_PROC(StencilMaskSeparate); | 130 GR_GL_GET_PROC(StencilMaskSeparate); |
| 131 functions->fStencilOp = glStencilOp; | 131 functions->fStencilOp = glStencilOp; |
| 132 GR_GL_GET_PROC(StencilOpSeparate); | 132 GR_GL_GET_PROC(StencilOpSeparate); |
| 133 functions->fTexImage2D = glTexImage2D; | 133 functions->fTexImage2D = glTexImage2D; |
| 134 functions->fTexGenfv = glTexGenfv; | |
| 135 functions->fTexGeni = glTexGeni; | |
| 136 functions->fTexParameteri = glTexParameteri; | 134 functions->fTexParameteri = glTexParameteri; |
| 137 functions->fTexParameteriv = glTexParameteriv; | 135 functions->fTexParameteriv = glTexParameteriv; |
| 138 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { | 136 if (glVer >= GR_GL_VER(4,2) || extensions.has("GL_ARB_texture_storage")) { |
| 139 GR_GL_GET_PROC(TexStorage2D); | 137 GR_GL_GET_PROC(TexStorage2D); |
| 140 } else if (extensions.has("GL_EXT_texture_storage")) { | 138 } else if (extensions.has("GL_EXT_texture_storage")) { |
| 141 GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT); | 139 GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT); |
| 142 } | 140 } |
| 143 functions->fTexSubImage2D = glTexSubImage2D; | 141 functions->fTexSubImage2D = glTexSubImage2D; |
| 144 GR_GL_GET_PROC(Uniform1f); | 142 GR_GL_GET_PROC(Uniform1f); |
| 145 GR_GL_GET_PROC(Uniform1i); | 143 GR_GL_GET_PROC(Uniform1i); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 GR_GL_GET_PROC(InvalidateSubFramebuffer); | 283 GR_GL_GET_PROC(InvalidateSubFramebuffer); |
| 286 GR_GL_GET_PROC(InvalidateTexImage); | 284 GR_GL_GET_PROC(InvalidateTexImage); |
| 287 GR_GL_GET_PROC(InvalidateTexSubImage); | 285 GR_GL_GET_PROC(InvalidateTexSubImage); |
| 288 } | 286 } |
| 289 | 287 |
| 290 interface->fStandard = kGL_GrGLStandard; | 288 interface->fStandard = kGL_GrGLStandard; |
| 291 interface->fExtensions.swap(&extensions); | 289 interface->fExtensions.swap(&extensions); |
| 292 | 290 |
| 293 return interface; | 291 return interface; |
| 294 } | 292 } |
| OLD | NEW |