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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 135 #if GL_EXT_map_buffer_range || GL_ES_VERSION_3_0 |
136 functions->fMapBufferRange = glMapBufferRangeEXT; | 136 functions->fMapBufferRange = glMapBufferRangeEXT; |
137 functions->fFlushMappedBufferRange = glFlushMappedBufferRangeEXT; | 137 functions->fFlushMappedBufferRange = glFlushMappedBufferRangeEXT; |
138 #endif | 138 #endif |
139 | 139 |
140 #if GL_APPLE_framebuffer_multisample | 140 #if GL_APPLE_framebuffer_multisample |
141 functions->fRenderbufferStorageMultisample = glRenderbufferStorageMultisampl
eAPPLE; | 141 functions->fRenderbufferStorageMultisampleES2APPLE = glRenderbufferStorageMu
ltisampleAPPLE; |
142 functions->fResolveMultisampleFramebuffer = glResolveMultisampleFramebufferA
PPLE; | 142 functions->fResolveMultisampleFramebuffer = glResolveMultisampleFramebufferA
PPLE; |
143 #endif | 143 #endif |
144 | 144 |
145 #if GL_OES_vertex_array_object | 145 #if GL_OES_vertex_array_object |
146 functions->fBindVertexArray = glBindVertexArrayOES; | 146 functions->fBindVertexArray = glBindVertexArrayOES; |
147 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; | 147 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; |
148 functions->fGenVertexArrays = glGenVertexArraysOES; | 148 functions->fGenVertexArrays = glGenVertexArraysOES; |
149 #endif | 149 #endif |
150 | 150 |
151 #if GL_EXT_debug_marker | 151 #if GL_EXT_debug_marker |
(...skipping 12 matching lines...) Expand all Loading... |
164 functions->fInvalidateBufferSubData = glInvalidateBufferSubData; | 164 functions->fInvalidateBufferSubData = glInvalidateBufferSubData; |
165 functions->fInvalidateTexImage = glInvalidateTexImage; | 165 functions->fInvalidateTexImage = glInvalidateTexImage; |
166 functions->fInvalidateTexSubImage = glInvalidateTexSubImage; | 166 functions->fInvalidateTexSubImage = glInvalidateTexSubImage; |
167 #endif | 167 #endif |
168 | 168 |
169 interface->fStandard = kGLES_GrGLStandard; | 169 interface->fStandard = kGLES_GrGLStandard; |
170 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte
gerv); | 170 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte
gerv); |
171 | 171 |
172 return interface; | 172 return interface; |
173 } | 173 } |
OLD | NEW |