| OLD | NEW |
| 1 // Modified from chromium/src/webkit/glue/gl_bindings_skia_cmd_buffer.cc | 1 // Modified from chromium/src/webkit/glue/gl_bindings_skia_cmd_buffer.cc |
| 2 | 2 |
| 3 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 // Use of this source code is governed by a BSD-style license that can be | 4 // Use of this source code is governed by a BSD-style license that can be |
| 5 // found in the LICENSE file. | 5 // found in the LICENSE file. |
| 6 | 6 |
| 7 #include "gl/GrGLExtensions.h" | 7 #include "gl/GrGLExtensions.h" |
| 8 #include "gl/GrGLInterface.h" | 8 #include "gl/GrGLInterface.h" |
| 9 #include "gl/GrGLUtil.h" | 9 #include "gl/GrGLUtil.h" |
| 10 | 10 |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 functions->fRenderbufferStorage = (GrGLRenderbufferStorageProc) eglGetProcAd
dress("glRenderbufferStorage"); | 318 functions->fRenderbufferStorage = (GrGLRenderbufferStorageProc) eglGetProcAd
dress("glRenderbufferStorage"); |
| 319 functions->fRenderbufferStorageMultisample = (GrGLRenderbufferStorageMultisa
mpleProc) eglGetProcAddress("glRenderbufferStorageMultisample"); | 319 functions->fRenderbufferStorageMultisample = (GrGLRenderbufferStorageMultisa
mpleProc) eglGetProcAddress("glRenderbufferStorageMultisample"); |
| 320 functions->fScissor = (GrGLScissorProc) eglGetProcAddress("glScissor"); | 320 functions->fScissor = (GrGLScissorProc) eglGetProcAddress("glScissor"); |
| 321 functions->fShaderSource = (GrGLShaderSourceProc) eglGetProcAddress("glShade
rSource"); | 321 functions->fShaderSource = (GrGLShaderSourceProc) eglGetProcAddress("glShade
rSource"); |
| 322 functions->fStencilFunc = (GrGLStencilFuncProc) eglGetProcAddress("glStencil
Func"); | 322 functions->fStencilFunc = (GrGLStencilFuncProc) eglGetProcAddress("glStencil
Func"); |
| 323 functions->fStencilFuncSeparate = (GrGLStencilFuncSeparateProc) eglGetProcAd
dress("glStencilFuncSeparate"); | 323 functions->fStencilFuncSeparate = (GrGLStencilFuncSeparateProc) eglGetProcAd
dress("glStencilFuncSeparate"); |
| 324 functions->fStencilMask = (GrGLStencilMaskProc) eglGetProcAddress("glStencil
Mask"); | 324 functions->fStencilMask = (GrGLStencilMaskProc) eglGetProcAddress("glStencil
Mask"); |
| 325 functions->fStencilMaskSeparate = (GrGLStencilMaskSeparateProc) eglGetProcAd
dress("glStencilMaskSeparate"); | 325 functions->fStencilMaskSeparate = (GrGLStencilMaskSeparateProc) eglGetProcAd
dress("glStencilMaskSeparate"); |
| 326 functions->fStencilOp = (GrGLStencilOpProc) eglGetProcAddress("glStencilOp")
; | 326 functions->fStencilOp = (GrGLStencilOpProc) eglGetProcAddress("glStencilOp")
; |
| 327 functions->fStencilOpSeparate = (GrGLStencilOpSeparateProc) eglGetProcAddres
s("glStencilOpSeparate"); | 327 functions->fStencilOpSeparate = (GrGLStencilOpSeparateProc) eglGetProcAddres
s("glStencilOpSeparate"); |
| 328 functions->fTexGenfv = (GrGLTexGenfvProc) eglGetProcAddress("glTexGenfv"); | |
| 329 functions->fTexGeni = (GrGLTexGeniProc) eglGetProcAddress("glTexGeni"); | |
| 330 functions->fTexImage2D = (GrGLTexImage2DProc) eglGetProcAddress("glTexImage2
D"); | 328 functions->fTexImage2D = (GrGLTexImage2DProc) eglGetProcAddress("glTexImage2
D"); |
| 331 functions->fTexParameteri = (GrGLTexParameteriProc) eglGetProcAddress("glTex
Parameteri"); | 329 functions->fTexParameteri = (GrGLTexParameteriProc) eglGetProcAddress("glTex
Parameteri"); |
| 332 functions->fTexParameteriv = (GrGLTexParameterivProc) eglGetProcAddress("glT
exParameteriv"); | 330 functions->fTexParameteriv = (GrGLTexParameterivProc) eglGetProcAddress("glT
exParameteriv"); |
| 333 functions->fTexSubImage2D = (GrGLTexSubImage2DProc) eglGetProcAddress("glTex
SubImage2D"); | 331 functions->fTexSubImage2D = (GrGLTexSubImage2DProc) eglGetProcAddress("glTex
SubImage2D"); |
| 334 functions->fTexStorage2D = (GrGLTexStorage2DProc) eglGetProcAddress("glTexSt
orage2D"); | 332 functions->fTexStorage2D = (GrGLTexStorage2DProc) eglGetProcAddress("glTexSt
orage2D"); |
| 335 functions->fUniform1f = (GrGLUniform1fProc) eglGetProcAddress("glUniform1f")
; | 333 functions->fUniform1f = (GrGLUniform1fProc) eglGetProcAddress("glUniform1f")
; |
| 336 functions->fUniform1i = (GrGLUniform1iProc) eglGetProcAddress("glUniform1i")
; | 334 functions->fUniform1i = (GrGLUniform1iProc) eglGetProcAddress("glUniform1i")
; |
| 337 functions->fUniform1fv = (GrGLUniform1fvProc) eglGetProcAddress("glUniform1f
v"); | 335 functions->fUniform1fv = (GrGLUniform1fvProc) eglGetProcAddress("glUniform1f
v"); |
| 338 functions->fUniform1iv = (GrGLUniform1ivProc) eglGetProcAddress("glUniform1i
v"); | 336 functions->fUniform1iv = (GrGLUniform1ivProc) eglGetProcAddress("glUniform1i
v"); |
| 339 functions->fUniform2f = (GrGLUniform2fProc) eglGetProcAddress("glUniform2f")
; | 337 functions->fUniform2f = (GrGLUniform2fProc) eglGetProcAddress("glUniform2f")
; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 } else if (kGL_GrGLStandard == standard) { | 442 } else if (kGL_GrGLStandard == standard) { |
| 445 interface = create_desktop_interface(version, extensions); | 443 interface = create_desktop_interface(version, extensions); |
| 446 } | 444 } |
| 447 | 445 |
| 448 if (NULL != interface) { | 446 if (NULL != interface) { |
| 449 interface->fExtensions.swap(&extensions); | 447 interface->fExtensions.swap(&extensions); |
| 450 } | 448 } |
| 451 | 449 |
| 452 return interface; | 450 return interface; |
| 453 } | 451 } |
| OLD | NEW |