Lines Matching refs:GrAlwaysAssert
78 GrAlwaysAssert(texture < kDefaultMaxTextureUnits); in activeTexture()
85 GrAlwaysAssert(program); in attachShader()
88 GrAlwaysAssert(shader); in attachShader()
95 GrAlwaysAssert(target == GR_GL_TEXTURE_2D || in bindTexture()
108 GrAlwaysAssert(size >= 0); in bufferData()
109 GrAlwaysAssert(GR_GL_STREAM_DRAW == usage || in bufferData()
114 GrAlwaysAssert(buffer); in bufferData()
115 GrAlwaysAssert(buffer->getBound()); in bufferData()
137 GrAlwaysAssert(false); in pixelStorei()
170 GrAlwaysAssert(false); in readPixels()
183 GrAlwaysAssert(false); in readPixels()
214 GrAlwaysAssert(GR_GL_FRAMEBUFFER == target || in bindFramebuffer()
228 GrAlwaysAssert(GR_GL_RENDERBUFFER == target); in bindRenderbuffer()
280 GrAlwaysAssert(buffer); in deleteTextures()
284 GrAlwaysAssert(!buffer->getBound()); in deleteTextures()
286 GrAlwaysAssert(!buffer->getDeleted()); in deleteTextures()
310 GrAlwaysAssert(buffer); in deleteFramebuffers()
312 GrAlwaysAssert(!buffer->getDeleted()); in deleteFramebuffers()
360 GrAlwaysAssert(buffer); in deleteRenderbuffers()
365 GrAlwaysAssert(!buffer->getColorBound()); in deleteRenderbuffers()
366 GrAlwaysAssert(!buffer->getDepthBound()); in deleteRenderbuffers()
371 GrAlwaysAssert(!buffer->getDeleted()); in deleteRenderbuffers()
378 GrAlwaysAssert(GR_GL_RENDERBUFFER == target); in renderbufferStorage()
380 GrAlwaysAssert(renderBuffer); in renderbufferStorage()
387 GrAlwaysAssert(GR_GL_RENDERBUFFER == target); in renderbufferStorageMultisample()
389 GrAlwaysAssert(renderBuffer); in renderbufferStorageMultisample()
409 GrAlwaysAssert(GR_GL_FRAMEBUFFER == target); in framebufferRenderbuffer()
410 GrAlwaysAssert(GR_GL_COLOR_ATTACHMENT0 == attachment || in framebufferRenderbuffer()
413 GrAlwaysAssert(GR_GL_RENDERBUFFER == renderbuffertarget); in framebufferRenderbuffer()
417 GrAlwaysAssert(framebuffer); in framebufferRenderbuffer()
435 GrAlwaysAssert(false); in framebufferRenderbuffer()
451 GrAlwaysAssert(GR_GL_FRAMEBUFFER == target); in framebufferTexture2D()
452 GrAlwaysAssert(GR_GL_COLOR_ATTACHMENT0 == attachment || in framebufferTexture2D()
455 GrAlwaysAssert(GR_GL_TEXTURE_2D == textarget); in framebufferTexture2D()
459 GrAlwaysAssert(framebuffer); in framebufferTexture2D()
466 GrAlwaysAssert(!texture->getBound()); in framebufferTexture2D()
469 GrAlwaysAssert(0 == level); in framebufferTexture2D()
482 GrAlwaysAssert(false); in framebufferTexture2D()
520 GrAlwaysAssert(GR_GL_VERTEX_SHADER == type || in createShader()
534 GrAlwaysAssert(program); in deleteProgram()
547 GrAlwaysAssert(shader); in deleteShader()
593 GrAlwaysAssert(framebuffer); in getIntegerv()
600 GrAlwaysAssert(!numSamples || numSamples == depth->numSamples()); in getIntegerv()
604 GrAlwaysAssert(!numSamples || numSamples == color->numSamples()); in getIntegerv()
607 GrAlwaysAssert(numSamples); in getIntegerv()
765 GrAlwaysAssert(array); in deleteVertexArrays()
783 GrAlwaysAssert((0 == id) || array); in bindVertexArray()
813 GrAlwaysAssert(buffer); in deleteBuffers()
815 GrAlwaysAssert(!buffer->getDeleted()); in deleteBuffers()
824 GrAlwaysAssert(!SkToBool(GR_GL_MAP_READ_BIT & access)); in mapBufferRange()
825 GrAlwaysAssert((GR_GL_MAP_INVALIDATE_BUFFER_BIT | GR_GL_MAP_INVALIDATE_RANGE_BIT) & access); in mapBufferRange()
829 GrAlwaysAssert(offset >= 0 && offset + length <= buffer->getSize()); in mapBufferRange()
830 GrAlwaysAssert(!buffer->getMapped()); in mapBufferRange()
835 GrAlwaysAssert(false); in mapBufferRange()
840 GrAlwaysAssert(GR_GL_WRITE_ONLY == access); in mapBuffer()
851 GrAlwaysAssert(buffer->getMapped()); in unmapBuffer()
856 GrAlwaysAssert(false); in unmapBuffer()
864 GrAlwaysAssert(buffer->getMapped()); in flushMappedBufferRange()
865 GrAlwaysAssert(offset >= 0 && (offset + length) <= buffer->getMappedLength()); in flushMappedBufferRange()
867 GrAlwaysAssert(false); in flushMappedBufferRange()
873 GrAlwaysAssert(GR_GL_BUFFER_SIZE == value || in getBufferParameteriv()
877 GrAlwaysAssert(buffer); in getBufferParameteriv()
1028 GrAlwaysAssert(ids[i] == 0); in genObjs()
1030 GrAlwaysAssert(obj); in genObjs()
1048 GrAlwaysAssert(!fObjects[i]->getDeleted()); in findObject()
1049 GrAlwaysAssert(!fObjects[i]->getMarkedForDeletion()); in findObject()
1057 GrAlwaysAssert(0 <= unit && kDefaultMaxTextureUnits > unit); in getTextureUnit()
1065 GrAlwaysAssert(fBoundBuffers[buffIdx]->getBound()); in setBuffer()
1068 GrAlwaysAssert(!fBoundBuffers[buffIdx]->getDeleted()); in setBuffer()
1073 GrAlwaysAssert(!buffer->getDeleted()); in setBuffer()
1076 GrAlwaysAssert(!buffer->getBound()); in setBuffer()
1098 GrAlwaysAssert(fFrameBuffer->getBound()); in setFrameBuffer()
1101 GrAlwaysAssert(!fFrameBuffer->getDeleted()); in setFrameBuffer()
1108 GrAlwaysAssert(!fFrameBuffer->getDeleted()); in setFrameBuffer()
1111 GrAlwaysAssert(!fFrameBuffer->getBound()); in setFrameBuffer()
1120 GrAlwaysAssert(fRenderBuffer->getBound()); in setRenderBuffer()
1123 GrAlwaysAssert(!fRenderBuffer->getDeleted()); in setRenderBuffer()
1130 GrAlwaysAssert(!fRenderBuffer->getDeleted()); in setRenderBuffer()
1133 GrAlwaysAssert(!fRenderBuffer->getBound()); in setRenderBuffer()
1141 GrAlwaysAssert(fProgram->getInUse()); in useProgram()
1144 GrAlwaysAssert(!fProgram->getDeleted()); in useProgram()
1151 GrAlwaysAssert(!fProgram->getDeleted()); in useProgram()
1154 GrAlwaysAssert(!fProgram->getInUse()); in useProgram()
1162 GrAlwaysAssert(0 == fObjects[i]->getRefCount()); in report()
1163 GrAlwaysAssert(fObjects[i]->getDeleted()); in report()