| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 GET_PROC(StencilOpSeparate); | 103 GET_PROC(StencilOpSeparate); |
| 104 GET_PROC(TexImage2D); | 104 GET_PROC(TexImage2D); |
| 105 GET_PROC(TexParameteri); | 105 GET_PROC(TexParameteri); |
| 106 GET_PROC(TexParameteriv); | 106 GET_PROC(TexParameteriv); |
| 107 GET_PROC(TexSubImage2D); | 107 GET_PROC(TexSubImage2D); |
| 108 #if GL_ARB_texture_storage | 108 #if GL_ARB_texture_storage |
| 109 GET_PROC(TexStorage2D); | 109 GET_PROC(TexStorage2D); |
| 110 #elif GL_EXT_texture_storage | 110 #elif GL_EXT_texture_storage |
| 111 interface->fTexStorage2D = (GrGLTexStorage2DProc) eglGetProcAddress("glT
exStorage2DEXT"); | 111 interface->fTexStorage2D = (GrGLTexStorage2DProc) eglGetProcAddress("glT
exStorage2DEXT"); |
| 112 #endif | 112 #endif |
| 113 #if GL_EXT_discard_framebuffer |
| 114 interface->fDiscardFramebuffer = (GrGLDiscardFBProc) eglGetProcAddress("
glDiscardFramebufferEXT"); |
| 115 #endif |
| 113 GET_PROC(Uniform1f); | 116 GET_PROC(Uniform1f); |
| 114 GET_PROC(Uniform1i); | 117 GET_PROC(Uniform1i); |
| 115 GET_PROC(Uniform1fv); | 118 GET_PROC(Uniform1fv); |
| 116 GET_PROC(Uniform1iv); | 119 GET_PROC(Uniform1iv); |
| 117 | 120 |
| 118 GET_PROC(Uniform2f); | 121 GET_PROC(Uniform2f); |
| 119 GET_PROC(Uniform2i); | 122 GET_PROC(Uniform2i); |
| 120 GET_PROC(Uniform2fv); | 123 GET_PROC(Uniform2fv); |
| 121 GET_PROC(Uniform2iv); | 124 GET_PROC(Uniform2iv); |
| 122 | 125 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 149 GET_PROC(GetFramebufferAttachmentParameteriv); | 152 GET_PROC(GetFramebufferAttachmentParameteriv); |
| 150 GET_PROC(GetRenderbufferParameteriv); | 153 GET_PROC(GetRenderbufferParameteriv); |
| 151 GET_PROC(RenderbufferStorage); | 154 GET_PROC(RenderbufferStorage); |
| 152 | 155 |
| 153 interface->fMapBuffer = (GrGLMapBufferProc) eglGetProcAddress("glMapBuff
erOES"); | 156 interface->fMapBuffer = (GrGLMapBufferProc) eglGetProcAddress("glMapBuff
erOES"); |
| 154 interface->fUnmapBuffer = (GrGLUnmapBufferProc) eglGetProcAddress("glUnm
apBufferOES"); | 157 interface->fUnmapBuffer = (GrGLUnmapBufferProc) eglGetProcAddress("glUnm
apBufferOES"); |
| 155 } | 158 } |
| 156 glInterface.get()->ref(); | 159 glInterface.get()->ref(); |
| 157 return glInterface.get(); | 160 return glInterface.get(); |
| 158 } | 161 } |
| OLD | NEW |