| 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/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
| 10 | 10 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 functions->fGenRenderbuffers = glGenRenderbuffers; | 125 functions->fGenRenderbuffers = glGenRenderbuffers; |
| 126 functions->fDeleteRenderbuffers = glDeleteRenderbuffers; | 126 functions->fDeleteRenderbuffers = glDeleteRenderbuffers; |
| 127 functions->fFramebufferRenderbuffer = glFramebufferRenderbuffer; | 127 functions->fFramebufferRenderbuffer = glFramebufferRenderbuffer; |
| 128 functions->fBindRenderbuffer = glBindRenderbuffer; | 128 functions->fBindRenderbuffer = glBindRenderbuffer; |
| 129 | 129 |
| 130 #if GL_OES_mapbuffer | 130 #if GL_OES_mapbuffer |
| 131 functions->fMapBuffer = glMapBufferOES; | 131 functions->fMapBuffer = glMapBufferOES; |
| 132 functions->fUnmapBuffer = glUnmapBufferOES; | 132 functions->fUnmapBuffer = glUnmapBufferOES; |
| 133 #endif | 133 #endif |
| 134 | 134 |
| 135 #if GL_EXT_map_buffer_range || GL_ES_VERSION_3_0 |
| 136 functions->fMapBufferRange = glMapBufferRangeEXT; |
| 137 functions->fFlushMappedBufferRange = glFlushMappedBufferRangeEXT; |
| 138 #endif |
| 139 |
| 135 #if GL_APPLE_framebuffer_multisample | 140 #if GL_APPLE_framebuffer_multisample |
| 136 functions->fRenderbufferStorageMultisample = glRenderbufferStorageMultisampl
eAPPLE; | 141 functions->fRenderbufferStorageMultisample = glRenderbufferStorageMultisampl
eAPPLE; |
| 137 functions->fResolveMultisampleFramebuffer = glResolveMultisampleFramebufferA
PPLE; | 142 functions->fResolveMultisampleFramebuffer = glResolveMultisampleFramebufferA
PPLE; |
| 138 #endif | 143 #endif |
| 139 | 144 |
| 140 #if GL_OES_vertex_array_object | 145 #if GL_OES_vertex_array_object |
| 141 functions->fBindVertexArray = glBindVertexArrayOES; | 146 functions->fBindVertexArray = glBindVertexArrayOES; |
| 142 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; | 147 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; |
| 143 functions->fGenVertexArrays = glGenVertexArraysOES; | 148 functions->fGenVertexArrays = glGenVertexArraysOES; |
| 144 #endif | 149 #endif |
| (...skipping 14 matching lines...) Expand all Loading... |
| 159 functions->fInvalidateBufferSubData = glInvalidateBufferSubData; | 164 functions->fInvalidateBufferSubData = glInvalidateBufferSubData; |
| 160 functions->fInvalidateTexImage = glInvalidateTexImage; | 165 functions->fInvalidateTexImage = glInvalidateTexImage; |
| 161 functions->fInvalidateTexSubImage = glInvalidateTexSubImage; | 166 functions->fInvalidateTexSubImage = glInvalidateTexSubImage; |
| 162 #endif | 167 #endif |
| 163 | 168 |
| 164 interface->fStandard = kGLES_GrGLStandard; | 169 interface->fStandard = kGLES_GrGLStandard; |
| 165 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte
gerv); | 170 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte
gerv); |
| 166 | 171 |
| 167 return interface; | 172 return interface; |
| 168 } | 173 } |
| OLD | NEW |