| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 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 | 7 |
| 8 #ifndef GrGLInterface_DEFINED | 8 #ifndef GrGLInterface_DEFINED |
| 9 #define GrGLInterface_DEFINED | 9 #define GrGLInterface_DEFINED |
| 10 | 10 |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 269 |
| 270 GrGLFunction<GrGLResolveMultisampleFramebufferProc> fResolveMultisampleF
ramebuffer; | 270 GrGLFunction<GrGLResolveMultisampleFramebufferProc> fResolveMultisampleF
ramebuffer; |
| 271 GrGLFunction<GrGLScissorProc> fScissor; | 271 GrGLFunction<GrGLScissorProc> fScissor; |
| 272 GrGLFunction<GrGLShaderSourceProc> fShaderSource; | 272 GrGLFunction<GrGLShaderSourceProc> fShaderSource; |
| 273 GrGLFunction<GrGLStencilFuncProc> fStencilFunc; | 273 GrGLFunction<GrGLStencilFuncProc> fStencilFunc; |
| 274 GrGLFunction<GrGLStencilFuncSeparateProc> fStencilFuncSeparate; | 274 GrGLFunction<GrGLStencilFuncSeparateProc> fStencilFuncSeparate; |
| 275 GrGLFunction<GrGLStencilMaskProc> fStencilMask; | 275 GrGLFunction<GrGLStencilMaskProc> fStencilMask; |
| 276 GrGLFunction<GrGLStencilMaskSeparateProc> fStencilMaskSeparate; | 276 GrGLFunction<GrGLStencilMaskSeparateProc> fStencilMaskSeparate; |
| 277 GrGLFunction<GrGLStencilOpProc> fStencilOp; | 277 GrGLFunction<GrGLStencilOpProc> fStencilOp; |
| 278 GrGLFunction<GrGLStencilOpSeparateProc> fStencilOpSeparate; | 278 GrGLFunction<GrGLStencilOpSeparateProc> fStencilOpSeparate; |
| 279 GrGLFunction<GrGLTexBufferProc> fTexBuffer; |
| 279 GrGLFunction<GrGLTexImage2DProc> fTexImage2D; | 280 GrGLFunction<GrGLTexImage2DProc> fTexImage2D; |
| 280 GrGLFunction<GrGLTexParameteriProc> fTexParameteri; | 281 GrGLFunction<GrGLTexParameteriProc> fTexParameteri; |
| 281 GrGLFunction<GrGLTexParameterivProc> fTexParameteriv; | 282 GrGLFunction<GrGLTexParameterivProc> fTexParameteriv; |
| 282 GrGLFunction<GrGLTexSubImage2DProc> fTexSubImage2D; | 283 GrGLFunction<GrGLTexSubImage2DProc> fTexSubImage2D; |
| 283 GrGLFunction<GrGLTexStorage2DProc> fTexStorage2D; | 284 GrGLFunction<GrGLTexStorage2DProc> fTexStorage2D; |
| 284 GrGLFunction<GrGLTextureBarrierProc> fTextureBarrier; | 285 GrGLFunction<GrGLTextureBarrierProc> fTextureBarrier; |
| 285 GrGLFunction<GrGLDiscardFramebufferProc> fDiscardFramebuffer; | 286 GrGLFunction<GrGLDiscardFramebufferProc> fDiscardFramebuffer; |
| 286 GrGLFunction<GrGLUniform1fProc> fUniform1f; | 287 GrGLFunction<GrGLUniform1fProc> fUniform1f; |
| 287 GrGLFunction<GrGLUniform1iProc> fUniform1i; | 288 GrGLFunction<GrGLUniform1iProc> fUniform1i; |
| 288 GrGLFunction<GrGLUniform1fvProc> fUniform1fv; | 289 GrGLFunction<GrGLUniform1fvProc> fUniform1fv; |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 GrGLFunction<GrGLEnableVertexArrayProc> fEnableVertexArray; | 465 GrGLFunction<GrGLEnableVertexArrayProc> fEnableVertexArray; |
| 465 GrGLFunction<GrGLDisableVertexArrayProc> fDisableVertexArray; | 466 GrGLFunction<GrGLDisableVertexArrayProc> fDisableVertexArray; |
| 466 GrGLFunction<GrGLEnableVertexArrayAttribProc> fEnableVertexArrayAttrib; | 467 GrGLFunction<GrGLEnableVertexArrayAttribProc> fEnableVertexArrayAttrib; |
| 467 GrGLFunction<GrGLDisableVertexArrayAttribProc> fDisableVertexArrayAttrib
; | 468 GrGLFunction<GrGLDisableVertexArrayAttribProc> fDisableVertexArrayAttrib
; |
| 468 GrGLFunction<GrGLGetVertexArrayIntegervProc> fGetVertexArrayIntegerv; | 469 GrGLFunction<GrGLGetVertexArrayIntegervProc> fGetVertexArrayIntegerv; |
| 469 GrGLFunction<GrGLGetVertexArrayPointervProc> fGetVertexArrayPointerv; | 470 GrGLFunction<GrGLGetVertexArrayPointervProc> fGetVertexArrayPointerv; |
| 470 GrGLFunction<GrGLGetVertexArrayIntegeri_vProc> fGetVertexArrayIntegeri_v
; | 471 GrGLFunction<GrGLGetVertexArrayIntegeri_vProc> fGetVertexArrayIntegeri_v
; |
| 471 GrGLFunction<GrGLGetVertexArrayPointeri_vProc> fGetVertexArrayPointeri_v
; | 472 GrGLFunction<GrGLGetVertexArrayPointeri_vProc> fGetVertexArrayPointeri_v
; |
| 472 GrGLFunction<GrGLMapNamedBufferRangeProc> fMapNamedBufferRange; | 473 GrGLFunction<GrGLMapNamedBufferRangeProc> fMapNamedBufferRange; |
| 473 GrGLFunction<GrGLFlushMappedNamedBufferRangeProc> fFlushMappedNamedBuffe
rRange; | 474 GrGLFunction<GrGLFlushMappedNamedBufferRangeProc> fFlushMappedNamedBuffe
rRange; |
| 475 // OpenGL 3.1 |
| 476 GrGLFunction<GrGLTextureBufferProc> fTextureBuffer; |
| 474 | 477 |
| 475 /* KHR_debug */ | 478 /* KHR_debug */ |
| 476 GrGLFunction<GrGLDebugMessageControlProc> fDebugMessageControl; | 479 GrGLFunction<GrGLDebugMessageControlProc> fDebugMessageControl; |
| 477 GrGLFunction<GrGLDebugMessageInsertProc> fDebugMessageInsert; | 480 GrGLFunction<GrGLDebugMessageInsertProc> fDebugMessageInsert; |
| 478 GrGLFunction<GrGLDebugMessageCallbackProc> fDebugMessageCallback; | 481 GrGLFunction<GrGLDebugMessageCallbackProc> fDebugMessageCallback; |
| 479 GrGLFunction<GrGLGetDebugMessageLogProc> fGetDebugMessageLog; | 482 GrGLFunction<GrGLGetDebugMessageLogProc> fGetDebugMessageLog; |
| 480 GrGLFunction<GrGLPushDebugGroupProc> fPushDebugGroup; | 483 GrGLFunction<GrGLPushDebugGroupProc> fPushDebugGroup; |
| 481 GrGLFunction<GrGLPopDebugGroupProc> fPopDebugGroup; | 484 GrGLFunction<GrGLPopDebugGroupProc> fPopDebugGroup; |
| 482 GrGLFunction<GrGLObjectLabelProc> fObjectLabel; | 485 GrGLFunction<GrGLObjectLabelProc> fObjectLabel; |
| 483 | 486 |
| 484 /* EGL functions */ | 487 /* EGL functions */ |
| 485 GrGLFunction<GrEGLCreateImageProc> fEGLCreateImage; | 488 GrGLFunction<GrEGLCreateImageProc> fEGLCreateImage; |
| 486 GrGLFunction<GrEGLDestroyImageProc> fEGLDestroyImage; | 489 GrGLFunction<GrEGLDestroyImageProc> fEGLDestroyImage; |
| 487 } fFunctions; | 490 } fFunctions; |
| 488 | 491 |
| 489 // Per-GL func callback | 492 // Per-GL func callback |
| 490 #if GR_GL_PER_GL_FUNC_CALLBACK | 493 #if GR_GL_PER_GL_FUNC_CALLBACK |
| 491 GrGLInterfaceCallbackProc fCallback; | 494 GrGLInterfaceCallbackProc fCallback; |
| 492 GrGLInterfaceCallbackData fCallbackData; | 495 GrGLInterfaceCallbackData fCallbackData; |
| 493 #endif | 496 #endif |
| 494 | 497 |
| 495 // This exists for internal testing. | 498 // This exists for internal testing. |
| 496 virtual void abandon() const {} | 499 virtual void abandon() const {} |
| 497 }; | 500 }; |
| 498 | 501 |
| 499 #endif | 502 #endif |
| OLD | NEW |