| 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 #include "gl/GrGLExtensions.h" | 9 #include "gl/GrGLExtensions.h" |
| 10 #include "gl/GrGLInterface.h" | 10 #include "gl/GrGLInterface.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 GR_GL_GET_PROC(ReadBuffer); | 126 GR_GL_GET_PROC(ReadBuffer); |
| 127 GR_GL_GET_PROC(ReadPixels); | 127 GR_GL_GET_PROC(ReadPixels); |
| 128 GR_GL_GET_PROC(Scissor); | 128 GR_GL_GET_PROC(Scissor); |
| 129 GR_GL_GET_PROC(ShaderSource); | 129 GR_GL_GET_PROC(ShaderSource); |
| 130 GR_GL_GET_PROC(StencilFunc); | 130 GR_GL_GET_PROC(StencilFunc); |
| 131 GR_GL_GET_PROC(StencilFuncSeparate); | 131 GR_GL_GET_PROC(StencilFuncSeparate); |
| 132 GR_GL_GET_PROC(StencilMask); | 132 GR_GL_GET_PROC(StencilMask); |
| 133 GR_GL_GET_PROC(StencilMaskSeparate); | 133 GR_GL_GET_PROC(StencilMaskSeparate); |
| 134 GR_GL_GET_PROC(StencilOp); | 134 GR_GL_GET_PROC(StencilOp); |
| 135 GR_GL_GET_PROC(StencilOpSeparate); | 135 GR_GL_GET_PROC(StencilOpSeparate); |
| 136 GR_GL_GET_PROC(TexGenfv); | |
| 137 GR_GL_GET_PROC(TexGeni); | |
| 138 GR_GL_GET_PROC(TexImage2D) | 136 GR_GL_GET_PROC(TexImage2D) |
| 139 GR_GL_GET_PROC(TexParameteri); | 137 GR_GL_GET_PROC(TexParameteri); |
| 140 GR_GL_GET_PROC(TexParameteriv); | 138 GR_GL_GET_PROC(TexParameteriv); |
| 141 GR_GL_GET_PROC(TexStorage2D); | 139 GR_GL_GET_PROC(TexStorage2D); |
| 142 if (NULL == interface->fFunctions.fTexStorage2D) { | 140 if (NULL == interface->fFunctions.fTexStorage2D) { |
| 143 GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT); | 141 GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT); |
| 144 } | 142 } |
| 145 GR_GL_GET_PROC(TexSubImage2D); | 143 GR_GL_GET_PROC(TexSubImage2D); |
| 146 GR_GL_GET_PROC(Uniform1f); | 144 GR_GL_GET_PROC(Uniform1f); |
| 147 GR_GL_GET_PROC(Uniform1i); | 145 GR_GL_GET_PROC(Uniform1i); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 GR_GL_GET_PROC(InvalidateSubFramebuffer); | 229 GR_GL_GET_PROC(InvalidateSubFramebuffer); |
| 232 GR_GL_GET_PROC(InvalidateTexImage); | 230 GR_GL_GET_PROC(InvalidateTexImage); |
| 233 GR_GL_GET_PROC(InvalidateTexSubImage); | 231 GR_GL_GET_PROC(InvalidateTexSubImage); |
| 234 } | 232 } |
| 235 | 233 |
| 236 interface->fStandard = kGL_GrGLStandard; | 234 interface->fStandard = kGL_GrGLStandard; |
| 237 interface->fExtensions.swap(&extensions); | 235 interface->fExtensions.swap(&extensions); |
| 238 | 236 |
| 239 return interface; | 237 return interface; |
| 240 } | 238 } |
| OLD | NEW |