| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 GR_GL_GET_PROC(StencilOpSeparate); | 132 GR_GL_GET_PROC(StencilOpSeparate); |
| 133 interface->fTexImage2D = glTexImage2D; | 133 interface->fTexImage2D = glTexImage2D; |
| 134 interface->fTexParameteri = glTexParameteri; | 134 interface->fTexParameteri = glTexParameteri; |
| 135 interface->fTexParameteriv = glTexParameteriv; | 135 interface->fTexParameteriv = glTexParameteriv; |
| 136 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"))
{ |
| 137 GR_GL_GET_PROC(TexStorage2D); | 137 GR_GL_GET_PROC(TexStorage2D); |
| 138 } else if (extensions.has("GL_EXT_texture_storage")) { | 138 } else if (extensions.has("GL_EXT_texture_storage")) { |
| 139 GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT); | 139 GR_GL_GET_PROC_SUFFIX(TexStorage2D, EXT); |
| 140 } | 140 } |
| 141 interface->fTexSubImage2D = glTexSubImage2D; | 141 interface->fTexSubImage2D = glTexSubImage2D; |
| 142 if (extensions.has("GL_EXT_discard_framebuffer")) { |
| 143 GR_GL_GET_PROC_SUFFIX(DiscardFramebuffer, EXT); |
| 144 } |
| 142 GR_GL_GET_PROC(Uniform1f); | 145 GR_GL_GET_PROC(Uniform1f); |
| 143 GR_GL_GET_PROC(Uniform1i); | 146 GR_GL_GET_PROC(Uniform1i); |
| 144 GR_GL_GET_PROC(Uniform1fv); | 147 GR_GL_GET_PROC(Uniform1fv); |
| 145 GR_GL_GET_PROC(Uniform1iv); | 148 GR_GL_GET_PROC(Uniform1iv); |
| 146 GR_GL_GET_PROC(Uniform2f); | 149 GR_GL_GET_PROC(Uniform2f); |
| 147 GR_GL_GET_PROC(Uniform2i); | 150 GR_GL_GET_PROC(Uniform2i); |
| 148 GR_GL_GET_PROC(Uniform2fv); | 151 GR_GL_GET_PROC(Uniform2fv); |
| 149 GR_GL_GET_PROC(Uniform2iv); | 152 GR_GL_GET_PROC(Uniform2iv); |
| 150 GR_GL_GET_PROC(Uniform3f); | 153 GR_GL_GET_PROC(Uniform3f); |
| 151 GR_GL_GET_PROC(Uniform3i); | 154 GR_GL_GET_PROC(Uniform3i); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 delete interface; | 216 delete interface; |
| 214 return NULL; | 217 return NULL; |
| 215 } | 218 } |
| 216 interface->fBindingsExported = kDesktop_GrGLBinding; | 219 interface->fBindingsExported = kDesktop_GrGLBinding; |
| 217 | 220 |
| 218 return interface; | 221 return interface; |
| 219 } else { | 222 } else { |
| 220 return NULL; | 223 return NULL; |
| 221 } | 224 } |
| 222 } | 225 } |
| OLD | NEW |