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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; | 143 functions->fDeleteVertexArrays = glDeleteVertexArraysOES; |
144 functions->fGenVertexArrays = glGenVertexArraysOES; | 144 functions->fGenVertexArrays = glGenVertexArraysOES; |
145 #endif | 145 #endif |
146 | 146 |
147 #if GL_EXT_debug_marker | 147 #if GL_EXT_debug_marker |
148 functions->fInsertEventMarker = glInsertEventMarkerEXT; | 148 functions->fInsertEventMarker = glInsertEventMarkerEXT; |
149 functions->fPushGroupMarker = glPushGroupMarkerEXT; | 149 functions->fPushGroupMarker = glPushGroupMarkerEXT; |
150 functions->fPopGroupMarker = glPopGroupMarkerEXT; | 150 functions->fPopGroupMarker = glPopGroupMarkerEXT; |
151 #endif | 151 #endif |
152 | 152 |
| 153 #if GL_ES_VERSION_3_0 || GL_ARB_invalidate_subdata |
| 154 functions->fInvalidateFramebuffer = glInvalidateFramebuffer; |
| 155 functions->fInvalidateSubFramebuffer = glInvalidateSubFramebuffer; |
| 156 #endif |
| 157 |
| 158 #if GL_ARB_invalidate_subdata |
| 159 functions->fInvalidateBufferData = glInvalidateBufferData; |
| 160 functions->fInvalidateBufferSubData = glInvalidateBufferSubData; |
| 161 functions->fInvalidateTexImage = glInvalidateTexImage; |
| 162 functions->fInvalidateTexSubImage = glInvalidateTexSubImage; |
| 163 #endif |
| 164 |
153 interface->fStandard = kGLES_GrGLStandard; | 165 interface->fStandard = kGLES_GrGLStandard; |
154 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte
gerv); | 166 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetInte
gerv); |
155 | 167 |
156 return interface; | 168 return interface; |
157 } | 169 } |
OLD | NEW |