| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 GET_PROC(FramebufferTexture2D); | 146 GET_PROC(FramebufferTexture2D); |
| 147 GET_PROC(GenFramebuffers); | 147 GET_PROC(GenFramebuffers); |
| 148 GET_PROC(GenRenderbuffers); | 148 GET_PROC(GenRenderbuffers); |
| 149 GET_PROC(GetFramebufferAttachmentParameteriv); | 149 GET_PROC(GetFramebufferAttachmentParameteriv); |
| 150 GET_PROC(GetRenderbufferParameteriv); | 150 GET_PROC(GetRenderbufferParameteriv); |
| 151 GET_PROC(RenderbufferStorage); | 151 GET_PROC(RenderbufferStorage); |
| 152 | 152 |
| 153 functions->fMapBuffer = (GrGLMapBufferProc) eglGetProcAddress("glMapBufferOE
S"); | 153 functions->fMapBuffer = (GrGLMapBufferProc) eglGetProcAddress("glMapBufferOE
S"); |
| 154 functions->fUnmapBuffer = (GrGLUnmapBufferProc) eglGetProcAddress("glUnmapBu
fferOES"); | 154 functions->fUnmapBuffer = (GrGLUnmapBufferProc) eglGetProcAddress("glUnmapBu
fferOES"); |
| 155 | 155 |
| 156 if (extensions.has("GL_EXT_debug_marker")) { |
| 157 functions->fInsertEventMarker = (GrGLInsertEventMarkerProc) eglGetProcAd
dress("glInsertEventMarkerEXT"); |
| 158 functions->fPushGroupMarker = (GrGLInsertEventMarkerProc) eglGetProcAddr
ess("glPushGroupMarkerEXT"); |
| 159 functions->fPopGroupMarker = (GrGLPopGroupMarkerProc) eglGetProcAddress(
"glPopGropuMarkerEXT"); |
| 160 } |
| 161 |
| 156 interface->fExtensions.init(kGLES_GrGLStandard, | 162 interface->fExtensions.init(kGLES_GrGLStandard, |
| 157 interface->fFunctions.fGetString, | 163 interface->fFunctions.fGetString, |
| 158 interface->fFunctions.fGetStringi, | 164 interface->fFunctions.fGetStringi, |
| 159 interface->fFunctions.fGetIntegerv); | 165 interface->fFunctions.fGetIntegerv); |
| 160 return interface; | 166 return interface; |
| 161 } | 167 } |
| OLD | NEW |