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 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 functions->fDeleteBuffers = debugGLDeleteBuffers; | 868 functions->fDeleteBuffers = debugGLDeleteBuffers; |
869 functions->fDeleteProgram = debugGLDeleteProgram; | 869 functions->fDeleteProgram = debugGLDeleteProgram; |
870 functions->fDeleteQueries = noOpGLDeleteIds; | 870 functions->fDeleteQueries = noOpGLDeleteIds; |
871 functions->fDeleteShader = debugGLDeleteShader; | 871 functions->fDeleteShader = debugGLDeleteShader; |
872 functions->fDeleteTextures = debugGLDeleteTextures; | 872 functions->fDeleteTextures = debugGLDeleteTextures; |
873 functions->fDeleteVertexArrays = debugGLDeleteVertexArrays; | 873 functions->fDeleteVertexArrays = debugGLDeleteVertexArrays; |
874 functions->fDepthMask = noOpGLDepthMask; | 874 functions->fDepthMask = noOpGLDepthMask; |
875 functions->fDisable = noOpGLDisable; | 875 functions->fDisable = noOpGLDisable; |
876 functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray; | 876 functions->fDisableVertexAttribArray = noOpGLDisableVertexAttribArray; |
877 functions->fDrawArrays = noOpGLDrawArrays; | 877 functions->fDrawArrays = noOpGLDrawArrays; |
878 functions->fDrawArraysInstanced = noOpGLDrawArraysInstanced; | |
879 functions->fDrawBuffer = noOpGLDrawBuffer; | 878 functions->fDrawBuffer = noOpGLDrawBuffer; |
880 functions->fDrawBuffers = noOpGLDrawBuffers; | 879 functions->fDrawBuffers = noOpGLDrawBuffers; |
881 functions->fDrawElements = noOpGLDrawElements; | 880 functions->fDrawElements = noOpGLDrawElements; |
882 functions->fDrawElementsInstanced = noOpGLDrawElementsInstanced; | |
883 functions->fEnable = noOpGLEnable; | 881 functions->fEnable = noOpGLEnable; |
884 functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray; | 882 functions->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray; |
885 functions->fEndQuery = noOpGLEndQuery; | 883 functions->fEndQuery = noOpGLEndQuery; |
886 functions->fFinish = noOpGLFinish; | 884 functions->fFinish = noOpGLFinish; |
887 functions->fFlush = noOpGLFlush; | 885 functions->fFlush = noOpGLFlush; |
888 functions->fFlushMappedBufferRange = debugGLFlushMappedBufferRange; | 886 functions->fFlushMappedBufferRange = debugGLFlushMappedBufferRange; |
889 functions->fFrontFace = noOpGLFrontFace; | 887 functions->fFrontFace = noOpGLFrontFace; |
890 functions->fGenerateMipmap = debugGLGenerateMipmap; | 888 functions->fGenerateMipmap = debugGLGenerateMipmap; |
891 functions->fGenBuffers = debugGLGenBuffers; | 889 functions->fGenBuffers = debugGLGenBuffers; |
892 functions->fGenQueries = noOpGLGenIds; | 890 functions->fGenQueries = noOpGLGenIds; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv; | 947 functions->fUniformMatrix2fv = noOpGLUniformMatrix2fv; |
950 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv; | 948 functions->fUniformMatrix3fv = noOpGLUniformMatrix3fv; |
951 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv; | 949 functions->fUniformMatrix4fv = noOpGLUniformMatrix4fv; |
952 functions->fUnmapBuffer = debugGLUnmapBuffer; | 950 functions->fUnmapBuffer = debugGLUnmapBuffer; |
953 functions->fUseProgram = debugGLUseProgram; | 951 functions->fUseProgram = debugGLUseProgram; |
954 functions->fVertexAttrib1f = noOpGLVertexAttrib1f; | 952 functions->fVertexAttrib1f = noOpGLVertexAttrib1f; |
955 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv; | 953 functions->fVertexAttrib2fv = noOpGLVertexAttrib2fv; |
956 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv; | 954 functions->fVertexAttrib3fv = noOpGLVertexAttrib3fv; |
957 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv; | 955 functions->fVertexAttrib4fv = noOpGLVertexAttrib4fv; |
958 functions->fVertexAttribPointer = noOpGLVertexAttribPointer; | 956 functions->fVertexAttribPointer = noOpGLVertexAttribPointer; |
959 functions->fVertexAttribDivisor = noOpGLVertexAttribDivisor; | |
960 functions->fViewport = noOpGLViewport; | 957 functions->fViewport = noOpGLViewport; |
961 functions->fBindFramebuffer = debugGLBindFramebuffer; | 958 functions->fBindFramebuffer = debugGLBindFramebuffer; |
962 functions->fBindRenderbuffer = debugGLBindRenderbuffer; | 959 functions->fBindRenderbuffer = debugGLBindRenderbuffer; |
963 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus; | 960 functions->fCheckFramebufferStatus = noOpGLCheckFramebufferStatus; |
964 functions->fDeleteFramebuffers = debugGLDeleteFramebuffers; | 961 functions->fDeleteFramebuffers = debugGLDeleteFramebuffers; |
965 functions->fDeleteRenderbuffers = debugGLDeleteRenderbuffers; | 962 functions->fDeleteRenderbuffers = debugGLDeleteRenderbuffers; |
966 functions->fFramebufferRenderbuffer = debugGLFramebufferRenderbuffer; | 963 functions->fFramebufferRenderbuffer = debugGLFramebufferRenderbuffer; |
967 functions->fFramebufferTexture2D = debugGLFramebufferTexture2D; | 964 functions->fFramebufferTexture2D = debugGLFramebufferTexture2D; |
968 functions->fGenFramebuffers = debugGLGenFramebuffers; | 965 functions->fGenFramebuffers = debugGLGenFramebuffers; |
969 functions->fGenRenderbuffers = debugGLGenRenderbuffers; | 966 functions->fGenRenderbuffers = debugGLGenRenderbuffers; |
(...skipping 10 matching lines...) Expand all Loading... |
980 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; | 977 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; |
981 | 978 |
982 functions->fBindFragDataLocationIndexed = | 979 functions->fBindFragDataLocationIndexed = |
983 noOpGLBindFragDataLocationIndexed; | 980 noOpGLBindFragDataLocationIndexed; |
984 | 981 |
985 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, | 982 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, |
986 functions->fGetIntegerv); | 983 functions->fGetIntegerv); |
987 | 984 |
988 return interface; | 985 return interface; |
989 } | 986 } |
OLD | NEW |