| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 interface->fStencilOp = glStencilOp; | 78 interface->fStencilOp = glStencilOp; |
| 79 interface->fStencilOpSeparate = glStencilOpSeparate; | 79 interface->fStencilOpSeparate = glStencilOpSeparate; |
| 80 // mac uses GLenum for internalFormat param (non-standard) | 80 // mac uses GLenum for internalFormat param (non-standard) |
| 81 // amounts to int vs. uint. | 81 // amounts to int vs. uint. |
| 82 interface->fTexImage2D = (GrGLTexImage2DProc)glTexImage2D; | 82 interface->fTexImage2D = (GrGLTexImage2DProc)glTexImage2D; |
| 83 #if GL_ARB_texture_storage | 83 #if GL_ARB_texture_storage |
| 84 interface->fTexStorage2D = glTexStorage2D; | 84 interface->fTexStorage2D = glTexStorage2D; |
| 85 #elif GL_EXT_texture_storage | 85 #elif GL_EXT_texture_storage |
| 86 interface->fTexStorage2D = glTexStorage2DEXT; | 86 interface->fTexStorage2D = glTexStorage2DEXT; |
| 87 #endif | 87 #endif |
| 88 #if GL_EXT_discard_framebuffer |
| 89 interface->fDiscardFramebuffer = glDiscardFramebufferEXT; |
| 90 #endif |
| 88 interface->fTexParameteri = glTexParameteri; | 91 interface->fTexParameteri = glTexParameteri; |
| 89 interface->fTexParameteriv = glTexParameteriv; | 92 interface->fTexParameteriv = glTexParameteriv; |
| 90 interface->fTexSubImage2D = glTexSubImage2D; | 93 interface->fTexSubImage2D = glTexSubImage2D; |
| 91 interface->fUniform1f = glUniform1f; | 94 interface->fUniform1f = glUniform1f; |
| 92 interface->fUniform1i = glUniform1i; | 95 interface->fUniform1i = glUniform1i; |
| 93 interface->fUniform1fv = glUniform1fv; | 96 interface->fUniform1fv = glUniform1fv; |
| 94 interface->fUniform1iv = glUniform1iv; | 97 interface->fUniform1iv = glUniform1iv; |
| 95 interface->fUniform2f = glUniform2f; | 98 interface->fUniform2f = glUniform2f; |
| 96 interface->fUniform2i = glUniform2i; | 99 interface->fUniform2i = glUniform2i; |
| 97 interface->fUniform2fv = glUniform2fv; | 100 interface->fUniform2fv = glUniform2fv; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 interface->fBindVertexArray = glBindVertexArrayOES; | 142 interface->fBindVertexArray = glBindVertexArrayOES; |
| 140 interface->fDeleteVertexArrays = glDeleteVertexArraysOES; | 143 interface->fDeleteVertexArrays = glDeleteVertexArraysOES; |
| 141 interface->fGenVertexArrays = glGenVertexArraysOES; | 144 interface->fGenVertexArrays = glGenVertexArraysOES; |
| 142 #endif | 145 #endif |
| 143 | 146 |
| 144 interface->fBindingsExported = kES2_GrGLBinding; | 147 interface->fBindingsExported = kES2_GrGLBinding; |
| 145 } | 148 } |
| 146 glInterface.get()->ref(); | 149 glInterface.get()->ref(); |
| 147 return glInterface.get(); | 150 return glInterface.get(); |
| 148 } | 151 } |
| OLD | NEW |