Lines Matching refs:GrDebugGL

30     GrAlwaysAssert(texture < GrDebugGL::getInstance()->getMaxTextureUnits());  in debugGLActiveTexture()
32 GrDebugGL::getInstance()->setCurTextureUnit(texture); in debugGLActiveTexture()
40 GrDebugGL::kProgram_ObjTypes); in debugGLAttachShader()
45 GrDebugGL::kShader_ObjTypes); in debugGLAttachShader()
69 GrDebugGL::kTexture_ObjTypes); in debugGLBindTexture()
71 GrDebugGL::getInstance()->setTexture(texture); in debugGLBindTexture()
90 buffer = GrDebugGL::getInstance()->getArrayBuffer(); in debugGLBufferData()
93 buffer = GrDebugGL::getInstance()->getElementArrayBuffer(); in debugGLBufferData()
113 GrDebugGL::getInstance()->setUnPackRowLength(param); in debugGLPixelStorei()
116 GrDebugGL::getInstance()->setPackRowLength(param); in debugGLPixelStorei()
138 if (0 < GrDebugGL::getInstance()->getPackRowLength()) { in debugGLReadPixels()
139 pixelsInRow = GrDebugGL::getInstance()->getPackRowLength(); in debugGLReadPixels()
197 GrDebugGL::kProgram_ObjTypes); in debugGLUseProgram()
199 GrDebugGL::getInstance()->useProgram(program); in debugGLUseProgram()
213 GrDebugGL::kFrameBuffer_ObjTypes); in debugGLBindFramebuffer()
215 GrDebugGL::getInstance()->setFrameBuffer(frameBuffer); in debugGLBindFramebuffer()
225 GrDebugGL::kRenderBuffer_ObjTypes); in debugGLBindRenderbuffer()
227 GrDebugGL::getInstance()->setRenderBuffer(renderBuffer); in debugGLBindRenderbuffer()
235 i < GrDebugGL::getInstance()->getMaxTextureUnits(); in debugGLDeleteTextures()
237 GrTextureUnitObj *pTU = GrDebugGL::getInstance()->getTextureUnit(i); in debugGLDeleteTextures()
253 if (GrDebugGL::getInstance()->getFrameBuffer()) { in debugGLDeleteTextures()
255 GrFrameBufferObj *frameBuffer = GrDebugGL::getInstance()->getFrameBuffer(); in debugGLDeleteTextures()
278 GrDebugGL::kTexture_ObjTypes); in debugGLDeleteTextures()
295 if (GrDebugGL::getInstance()->getFrameBuffer()) { in debugGLDeleteFramebuffers()
299 GrDebugGL::getInstance()->getFrameBuffer()->getID()) { in debugGLDeleteFramebuffers()
301 GrDebugGL::getInstance()->setFrameBuffer(nullptr); in debugGLDeleteFramebuffers()
310 GrDebugGL::kFrameBuffer_ObjTypes); in debugGLDeleteFramebuffers()
322 if (GrDebugGL::getInstance()->getRenderBuffer()) { in debugGLDeleteRenderbuffers()
326 GrDebugGL::getInstance()->getRenderBuffer()->getID()) { in debugGLDeleteRenderbuffers()
329 GrDebugGL::getInstance()->setRenderBuffer(nullptr); in debugGLDeleteRenderbuffers()
337 if (GrDebugGL::getInstance()->getFrameBuffer()) { in debugGLDeleteRenderbuffers()
340 GrDebugGL::getInstance()->getFrameBuffer(); in debugGLDeleteRenderbuffers()
363 GrDebugGL::kRenderBuffer_ObjTypes); in debugGLDeleteRenderbuffers()
391 GrFrameBufferObj *framebuffer = GrDebugGL::getInstance()->getFrameBuffer(); in debugGLFramebufferRenderbuffer()
399 GrDebugGL::kRenderBuffer_ObjTypes); in debugGLFramebufferRenderbuffer()
431 GrFrameBufferObj *framebuffer = GrDebugGL::getInstance()->getFrameBuffer(); in debugGLFramebufferTexture2D()
437 GrDebugGL::kTexture_ObjTypes); in debugGLFramebufferTexture2D()
465 GrDebugGL::kProgram_ObjTypes); in debugGLCreateProgram()
475 GrShaderObj *shader = GR_CREATE(GrShaderObj, GrDebugGL::kShader_ObjTypes); in debugGLCreateShader()
485 GrDebugGL::kProgram_ObjTypes); in debugGLDeleteProgram()
500 GrDebugGL::kShader_ObjTypes); in debugGLDeleteShader()
511 GrGLvoid debugGenObjs(GrDebugGL::GrObjTypes type, in debugGenObjs()
517 GrFakeRefObj *obj = GrDebugGL::getInstance()->createObj(type); in debugGenObjs()
524 debugGenObjs(GrDebugGL::kBuffer_ObjTypes, n, ids); in debugGLGenBuffers()
532 debugGenObjs(GrDebugGL::kFrameBuffer_ObjTypes, n, ids); in debugGLGenFramebuffers()
537 debugGenObjs(GrDebugGL::kRenderBuffer_ObjTypes, n, ids); in debugGLGenRenderbuffers()
541 debugGenObjs(GrDebugGL::kTexture_ObjTypes, n, ids); in debugGLGenTextures()
545 debugGenObjs(GrDebugGL::kVertexArray_ObjTypes, n, ids); in debugGLGenVertexArrays()
551 GR_FIND(ids[i], GrVertexArrayObj, GrDebugGL::kVertexArray_ObjTypes); in debugGLDeleteVertexArrays()
555 if (GrDebugGL::getInstance()->getVertexArray() == array) { in debugGLDeleteVertexArrays()
556 GrDebugGL::getInstance()->setVertexArray(nullptr); in debugGLDeleteVertexArrays()
569 GrVertexArrayObj* array = GR_FIND(id, GrVertexArrayObj, GrDebugGL::kVertexArray_ObjTypes); in debugGLBindVertexArray()
571 GrDebugGL::getInstance()->setVertexArray(array); in debugGLBindVertexArray()
579 GrDebugGL::kBuffer_ObjTypes); in debugGLBindBuffer()
584 GrDebugGL::getInstance()->setArrayBuffer(buffer); in debugGLBindBuffer()
587 GrDebugGL::getInstance()->setElementArrayBuffer(buffer); in debugGLBindBuffer()
600 if (GrDebugGL::getInstance()->getArrayBuffer() && in debugGLDeleteBuffers()
601 ids[i] == GrDebugGL::getInstance()->getArrayBuffer()->getID()) { in debugGLDeleteBuffers()
603 GrDebugGL::getInstance()->setArrayBuffer(nullptr); in debugGLDeleteBuffers()
605 if (GrDebugGL::getInstance()->getElementArrayBuffer() && in debugGLDeleteBuffers()
607 GrDebugGL::getInstance()->getElementArrayBuffer()->getID()) { in debugGLDeleteBuffers()
609 GrDebugGL::getInstance()->setElementArrayBuffer(nullptr); in debugGLDeleteBuffers()
617 GrDebugGL::kBuffer_ObjTypes); in debugGLDeleteBuffers()
638 buffer = GrDebugGL::getInstance()->getArrayBuffer(); in debugGLMapBufferRange()
641 buffer = GrDebugGL::getInstance()->getElementArrayBuffer(); in debugGLMapBufferRange()
665 buffer = GrDebugGL::getInstance()->getArrayBuffer(); in debugGLMapBuffer()
668 buffer = GrDebugGL::getInstance()->getElementArrayBuffer(); in debugGLMapBuffer()
689 buffer = GrDebugGL::getInstance()->getArrayBuffer(); in debugGLUnmapBuffer()
692 buffer = GrDebugGL::getInstance()->getElementArrayBuffer(); in debugGLUnmapBuffer()
718 buffer = GrDebugGL::getInstance()->getArrayBuffer(); in debugGLFlushMappedBufferRange()
721 buffer = GrDebugGL::getInstance()->getElementArrayBuffer(); in debugGLFlushMappedBufferRange()
749 buffer = GrDebugGL::getInstance()->getArrayBuffer(); in debugGLGetBufferParameteriv()
752 buffer = GrDebugGL::getInstance()->getElementArrayBuffer(); in debugGLGetBufferParameteriv()
789 GrDebugGL::staticRef(); in GrDebugGLInterface()
793 GrDebugGL::staticUnRef(); in ~GrDebugGLInterface()
801 GrDebugGL::abandon(); in abandon()