| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindAttribLocation(GrGLuint program, | 54 GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindAttribLocation(GrGLuint program, |
| 55 GrGLuint index, | 55 GrGLuint index, |
| 56 const char* name) { | 56 const char* name) { |
| 57 } | 57 } |
| 58 | 58 |
| 59 //////////////////////////////////////////////////////////////////////////////// | 59 //////////////////////////////////////////////////////////////////////////////// |
| 60 GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindTexture(GrGLenum target, | 60 GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindTexture(GrGLenum target, |
| 61 GrGLuint textureID) { | 61 GrGLuint textureID) { |
| 62 | 62 |
| 63 // we don't use cube maps | 63 // we don't use cube maps |
| 64 GrAlwaysAssert(target == GR_GL_TEXTURE_2D); | 64 GrAlwaysAssert(target == GR_GL_TEXTURE_2D || |
| 65 target == GR_GL_TEXTURE_3D); |
| 65 // || target == GR_GL_TEXTURE_CUBE_MAP); | 66 // || target == GR_GL_TEXTURE_CUBE_MAP); |
| 66 | 67 |
| 67 // a textureID of 0 is acceptable - it binds to the default texture target | 68 // a textureID of 0 is acceptable - it binds to the default texture target |
| 68 GrTextureObj *texture = GR_FIND(textureID, GrTextureObj, | 69 GrTextureObj *texture = GR_FIND(textureID, GrTextureObj, |
| 69 GrDebugGL::kTexture_ObjTypes); | 70 GrDebugGL::kTexture_ObjTypes); |
| 70 | 71 |
| 71 GrDebugGL::getInstance()->setTexture(texture); | 72 GrDebugGL::getInstance()->setTexture(texture); |
| 72 } | 73 } |
| 73 | 74 |
| 74 | 75 |
| (...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 functions->fReadPixels = debugGLReadPixels; | 916 functions->fReadPixels = debugGLReadPixels; |
| 916 functions->fScissor = noOpGLScissor; | 917 functions->fScissor = noOpGLScissor; |
| 917 functions->fShaderSource = noOpGLShaderSource; | 918 functions->fShaderSource = noOpGLShaderSource; |
| 918 functions->fStencilFunc = noOpGLStencilFunc; | 919 functions->fStencilFunc = noOpGLStencilFunc; |
| 919 functions->fStencilFuncSeparate = noOpGLStencilFuncSeparate; | 920 functions->fStencilFuncSeparate = noOpGLStencilFuncSeparate; |
| 920 functions->fStencilMask = noOpGLStencilMask; | 921 functions->fStencilMask = noOpGLStencilMask; |
| 921 functions->fStencilMaskSeparate = noOpGLStencilMaskSeparate; | 922 functions->fStencilMaskSeparate = noOpGLStencilMaskSeparate; |
| 922 functions->fStencilOp = noOpGLStencilOp; | 923 functions->fStencilOp = noOpGLStencilOp; |
| 923 functions->fStencilOpSeparate = noOpGLStencilOpSeparate; | 924 functions->fStencilOpSeparate = noOpGLStencilOpSeparate; |
| 924 functions->fTexImage2D = noOpGLTexImage2D; | 925 functions->fTexImage2D = noOpGLTexImage2D; |
| 926 functions->fTexImage3D = noOpGLTexImage3D; |
| 925 functions->fTexParameteri = noOpGLTexParameteri; | 927 functions->fTexParameteri = noOpGLTexParameteri; |
| 926 functions->fTexParameteriv = noOpGLTexParameteriv; | 928 functions->fTexParameteriv = noOpGLTexParameteriv; |
| 927 functions->fTexSubImage2D = noOpGLTexSubImage2D; | 929 functions->fTexSubImage2D = noOpGLTexSubImage2D; |
| 930 functions->fTexSubImage3D = noOpGLTexSubImage3D; |
| 928 functions->fTexStorage2D = noOpGLTexStorage2D; | 931 functions->fTexStorage2D = noOpGLTexStorage2D; |
| 929 functions->fDiscardFramebuffer = noOpGLDiscardFramebuffer; | 932 functions->fDiscardFramebuffer = noOpGLDiscardFramebuffer; |
| 930 functions->fUniform1f = noOpGLUniform1f; | 933 functions->fUniform1f = noOpGLUniform1f; |
| 931 functions->fUniform1i = noOpGLUniform1i; | 934 functions->fUniform1i = noOpGLUniform1i; |
| 932 functions->fUniform1fv = noOpGLUniform1fv; | 935 functions->fUniform1fv = noOpGLUniform1fv; |
| 933 functions->fUniform1iv = noOpGLUniform1iv; | 936 functions->fUniform1iv = noOpGLUniform1iv; |
| 934 functions->fUniform2f = noOpGLUniform2f; | 937 functions->fUniform2f = noOpGLUniform2f; |
| 935 functions->fUniform2i = noOpGLUniform2i; | 938 functions->fUniform2i = noOpGLUniform2i; |
| 936 functions->fUniform2fv = noOpGLUniform2fv; | 939 functions->fUniform2fv = noOpGLUniform2fv; |
| 937 functions->fUniform2iv = noOpGLUniform2iv; | 940 functions->fUniform2iv = noOpGLUniform2iv; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; | 976 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; |
| 974 | 977 |
| 975 functions->fBindFragDataLocationIndexed = | 978 functions->fBindFragDataLocationIndexed = |
| 976 noOpGLBindFragDataLocationIndexed; | 979 noOpGLBindFragDataLocationIndexed; |
| 977 | 980 |
| 978 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, | 981 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio
ns->fGetStringi, |
| 979 functions->fGetIntegerv); | 982 functions->fGetIntegerv); |
| 980 | 983 |
| 981 return interface; | 984 return interface; |
| 982 } | 985 } |
| OLD | NEW |