Lines Matching refs:GL_CALL
41 #define GL_CALL(X) GR_GL_CALL(this->glInterface(), X)
384 GL_CALL(UseProgram(0));
399 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram));
405 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram));
417 GL_CALL(UseProgram(0));
430 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram));
435 GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram));
478 GL_CALL(Disable(GR_GL_DEPTH_TEST));
479 GL_CALL(DepthMask(GR_GL_FALSE));
482 GL_CALL(Disable(GR_GL_CULL_FACE));
485 GL_CALL(FrontFace(GR_GL_CCW));
496 GL_CALL(Disable(GR_GL_POINT_SMOOTH));
497 GL_CALL(Disable(GR_GL_LINE_SMOOTH));
498 GL_CALL(Disable(GR_GL_POLYGON_SMOOTH));
499 GL_CALL(Disable(GR_GL_POLYGON_STIPPLE));
500 GL_CALL(Disable(GR_GL_COLOR_LOGIC_OP));
501 GL_CALL(Disable(GR_GL_INDEX_LOGIC_OP));
507 GL_CALL(Disable(GR_GL_COLOR_TABLE));
509 GL_CALL(Disable(GR_GL_POLYGON_OFFSET_FILL));
512 GL_CALL(PolygonMode(GR_GL_FRONT_AND_BACK, GR_GL_LINE));
514 GL_CALL(PolygonMode(GR_GL_FRONT_AND_BACK, GR_GL_FILL));
519 GL_CALL(Enable(GR_GL_VERTEX_PROGRAM_POINT_SIZE));
527 GL_CALL(Enable(GR_GL_FETCH_PER_SAMPLE));
531 GL_CALL(LineWidth(1));
532 GL_CALL(Disable(GR_GL_DITHER));
548 GL_CALL(CoverageModulation(GR_GL_RGBA));
600 GL_CALL(PixelStorei(GR_GL_UNPACK_ROW_LENGTH, 0));
603 GL_CALL(PixelStorei(GR_GL_PACK_ROW_LENGTH, 0));
606 GL_CALL(PixelStorei(GR_GL_PACK_REVERSE_ROW_ORDER, GR_GL_FALSE));
797 GL_CALL(BindTexture(glTex->target(), glTex->textureID()));
868 GL_CALL(BindTexture(glTex->target(), glTex->textureID()));
895 GL_CALL(PixelStorei(GR_GL_UNPACK_ROW_LENGTH, rowBytes / bpp));
910 GL_CALL
911 GL_CALL(TexSubImage2D(glTex->target(),
920 GL_CALL(PixelStorei(GR_GL_UNPACK_ROW_LENGTH, 0));
1155 GL_CALL(BindBuffer(xferBufferState.fGLTarget, 0));
1335 GL_CALL(TexSubImage2D(target,
1434 GL_CALL(GenFramebuffers(1, &idDesc->fTexFBOID));
1444 GL_CALL(GenFramebuffers(1, &idDesc->fRTFBOID));
1445 GL_CALL(GenRenderbuffers(1, &idDesc->fMSColorRenderbufferID));
1459 GL_CALL(BindRenderbuffer(GR_GL_RENDERBUFFER, idDesc->fMSColorRenderbufferID));
1467 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
1482 GL_CALL(FramebufferTexture2DMultisample(GR_GL_FRAMEBUFFER,
1487 GL_CALL(FramebufferTexture2D(GR_GL_FRAMEBUFFER,
1504 GL_CALL(DeleteRenderbuffers(1, &idDesc->fMSColorRenderbufferID));
1580 GL_CALL(BindTexture(idDesc.fInfo.fTarget, 0));
1584 GL_CALL(DeleteTextures(1, &idDesc.fInfo.fID));
1603 GL_CALL(ClearTexImage(tex->textureID(), 0, GR_GL_RGBA, GR_GL_UNSIGNED_BYTE, &kZero));
1612 GL_CALL(Clear(GR_GL_COLOR_BUFFER_BIT));
1655 GL_CALL(GenTextures(1, &colorID));
1657 GL_CALL(BindTexture(GR_GL_TEXTURE_2D, colorID));
1658 GL_CALL(TexParameteri(GR_GL_TEXTURE_2D,
1661 GL_CALL(TexParameteri(GR_GL_TEXTURE_2D,
1664 GL_CALL(TexParameteri(GR_GL_TEXTURE_2D,
1667 GL_CALL(TexParameteri(GR_GL_TEXTURE_2D,
1690 GL_CALL(DeleteTextures(1, &colorID));
1695 GL_CALL(BindTexture(GR_GL_TEXTURE_2D, 0));
1699 GL_CALL(GenFramebuffers(1, &fb));
1702 GL_CALL(FramebufferTexture2D(GR_GL_FRAMEBUFFER,
1708 GL_CALL(GenRenderbuffers(1, &sbRBID));
1713 GL_CALL(BindRenderbuffer(GR_GL_RENDERBUFFER, sbRBID));
1721 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
1725 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
1729 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
1739 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
1743 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
1749 GL_CALL(DeleteRenderbuffers(1, &sbRBID));
1751 GL_CALL(DeleteTextures(1, &colorID));
1765 GL_CALL(GenTextures(1, &(info->fID)));
1772 GL_CALL(BindTexture(info->fTarget, info->fID));
1776 GL_CALL(TexParameteri(info->fTarget,
1797 GL_CALL(DeleteTextures(1, &(info->fID)));
1818 GL_CALL(GenRenderbuffers(1, &sbDesc.fRenderbufferID));
1823 GL_CALL(BindRenderbuffer(GR_GL_RENDERBUFFER, sbDesc.fRenderbufferID));
1878 GL_CALL(Enable(GR_GL_SCISSOR_TEST));
1913 GL_CALL(WindowRectangles(glmode, numWindows, glwindows->asInts()));
1924 GL_CALL(WindowRectangles(GR_GL_EXCLUSIVE, 0, nullptr));
2049 GL_CALL(UseProgram(id));
2061 GL_CALL(UseProgram(id));
2124 GL_CALL(BindBuffer(bufferState.fGLTarget, 0));
2128 GL_CALL(BindBuffer(bufferState.fGLTarget, glBuffer->bufferID()));
2138 GL_CALL(Disable(GR_GL_SCISSOR_TEST));
2173 GL_CALL(Clear(GR_GL_COLOR_BUFFER_BIT));
2194 GL_CALL(StencilMask(0xffffffff));
2195 GL_CALL(ClearStencil(clearValue));
2196 GL_CALL(Clear(GR_GL_STENCIL_BUFFER_BIT));
2238 GL_CALL(StencilMask((uint32_t) clipStencilMask));
2239 GL_CALL(ClearStencil(value));
2240 GL_CALL(Clear(GR_GL_STENCIL_BUFFER_BIT));
2375 GL_CALL(PixelStorei(GR_GL_PACK_ROW_LENGTH,
2383 GL_CALL(PixelStorei(GR_GL_PACK_ALIGNMENT, config_alignment(dstAsConfig)));
2392 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, GR_GL_STENCIL_ATTACHMENT,
2396 GL_CALL(ReadPixels(readRect.fLeft, readRect.fBottom,
2403 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, GR_GL_STENCIL_ATTACHMENT,
2409 GL_CALL(PixelStorei(GR_GL_PACK_ROW_LENGTH, 0));
2486 GL_CALL(Enable(GR_GL_FRAMEBUFFER_SRGB));
2489 GL_CALL(Disable(GR_GL_FRAMEBUFFER_SRGB));
2569 GL_CALL(Enable(GR_GL_CULL_FACE));
2570 GL_CALL(Disable(GR_GL_CULL_FACE));
2614 GL_CALL(DrawArrays(glPrimType, 0, vertexCount));
2617 GL_CALL(DrawArrays(glPrimType, baseVertex, vertexCount));
2633 GL_CALL(DrawRangeElements(glPrimType, minIndexValue, maxIndexValue, indexCount,
2636 GL_CALL(DrawElements(glPrimType, indexCount, GR_GL_UNSIGNED_SHORT, indices));
2650 GL_CALL(DrawArraysInstanced(glPrimType, baseVertex, vertexCount,
2669 GL_CALL(DrawElementsInstanced(glPrimType, indexCount, GR_GL_UNSIGNED_SHORT, indices,
2699 GL_CALL(ResolveMultisampleFramebuffer());
2720 GL_CALL(BlitFramebuffer(l, b, r, t, l, b, r, t,
2784 GL_CALL(Enable(GR_GL_STENCIL_TEST));
2806 GL_CALL(Disable(GR_GL_STENCIL_TEST));
2821 GL_CALL(Enable(GR_GL_MULTISAMPLE));
2826 GL_CALL(Disable(GR_GL_MULTISAMPLE));
2837 GL_CALL(Enable(GR_GL_RASTER_MULTISAMPLE));
2845 GL_CALL(RasterSamples(numStencilSamples, GR_GL_TRUE));
2850 GL_CALL(Disable(GR_GL_RASTER_MULTISAMPLE));
2872 GL_CALL(Disable(GR_GL_BLEND));
2881 GL_CALL(BlendEquation(gXfermodeEquation2Blend[blend_equation]));
2891 GL_CALL(Enable(GR_GL_BLEND));
2897 GL_CALL(BlendEquation(gXfermodeEquation2Blend[equation]));
2908 GL_CALL(BlendFunc(gXfermodeCoeff2Blend[srcCoeff],
2917 GL_CALL(BlendColor(blendConst.fR, blendConst.fG, blendConst.fB, blendConst.fA));
2961 GL_CALL(BindTexture(target, texture->textureID()));
3002 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_MAG_FILTER, newSamplerParams.fMagFilter));
3006 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_MIN_FILTER, newSamplerParams.fMinFilter));
3011 GL_CALL(TexParameterf(target, GR_GL_TEXTURE_MIN_LOD, newSamplerParams.fMinLOD));
3015 GL_CALL(TexParameterf(target, GR_GL_TEXTURE_MAX_LOD, newSamplerParams.fMaxLOD));
3020 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_WRAP_S, newSamplerParams.fWrapS));
3024 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_WRAP_T, newSamplerParams.fWrapT));
3031 GL_CALL(TexParameterfv(target, GR_GL_TEXTURE_BORDER_COLOR, kTransparentBlack));
3049 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_R, glValues[0]));
3050 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_G, glValues[1]));
3051 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_B, glValues[2]));
3052 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_A, glValues[3]));
3055 GL_CALL(TexParameteriv(target, GR_GL_TEXTURE_SWIZZLE_RGBA,
3066 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_BASE_LEVEL,
3071 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_MAX_LEVEL,
3081 GL_CALL(ColorMask(GR_GL_FALSE, GR_GL_FALSE,
3087 GL_CALL(ColorMask(GR_GL_TRUE, GR_GL_TRUE, GR_GL_TRUE, GR_GL_TRUE));
3096 GL_CALL(ClearColor(r, g, b, a));
3107 GL_CALL(ActiveTexture(GR_GL_TEXTURE0 + unit));
3116 GL_CALL(ActiveTexture(GR_GL_TEXTURE0 + lastUnitIdx));
3232 GL_CALL(Flush());
3238 GL_CALL(BindFramebuffer(target, fboid));
3260 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, GR_GL_COLOR_ATTACHMENT0,
3262 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, GR_GL_STENCIL_ATTACHMENT,
3264 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, GR_GL_DEPTH_ATTACHMENT,
3268 GL_CALL(DeleteFramebuffers(1, &fboid));
3419 GL_CALL(LinkProgram(fCopyPrograms[progIdx].fProgram));
3428 GL_CALL(BindAttribLocation(fCopyPrograms[progIdx].fProgram, 0, "a_vertex"));
3430 GL_CALL(DeleteShader(vshader));
3431 GL_CALL(DeleteShader(fshader));
3578 GL_CALL(LinkProgram(fMipmapPrograms[progIdx].fProgram));
3585 GL_CALL(BindAttribLocation(fMipmapPrograms[progIdx].fProgram, 0, "a_vertex"));
3587 GL_CALL(DeleteShader(vshader));
3588 GL_CALL(DeleteShader(fshader));
3662 GL_CALL(Uniform4f(fCopyPrograms[progIdx].fPosXformUniform, dx1 - dx0, dy1 - dy0, dx0, dy0));
3663 GL_CALL(Uniform4f(fCopyPrograms[progIdx].fTexCoordXformUniform,
3665 GL_CALL(Uniform1i(fCopyPrograms[progIdx].fTextureUniform, 0));
3679 GL_CALL(DrawArrays(GR_GL_TRIANGLE_STRIP, 0, 4));
3701 GL_CALL(BindTexture(dstTex->target(), dstTex->textureID()));
3708 GL_CALL(CopyTexSubImage2D(dstTex->target(), 0,
3757 GL_CALL(BlitFramebuffer(srcGLRect.fLeft,
3788 GL_CALL(BindTexture(target, glTex->textureID()));
3789 GL_CALL(GenerateMipmap(glTex->target()));
3800 GL_CALL(GenFramebuffers(1, &fTempDstFBOID));
3865 GL_CALL(Uniform4f(fMipmapPrograms[progIdx].fTexCoordXformUniform,
3867 GL_CALL(Uniform1i(fMipmapPrograms[progIdx].fTextureUniform, 0));
3870 GL_CALL(TexParameteri(GR_GL_TEXTURE_2D, GR_GL_TEXTURE_BASE_LEVEL, level - 1));
3872 GL_CALL(FramebufferTexture2D(GR_GL_FRAMEBUFFER, GR_GL_COLOR_ATTACHMENT0, GR_GL_TEXTURE_2D,
3881 GL_CALL(DrawArrays(GR_GL_TRIANGLE_STRIP, 0, 4));
3885 GL_CALL(FramebufferTexture2D(GR_GL_FRAMEBUFFER, GR_GL_COLOR_ATTACHMENT0,
3909 GL_CALL(TextureBarrier());
3915 GL_CALL(BlendBarrier());
3951 GL_CALL(GenTextures(1, &info.fID));
3952 GL_CALL(ActiveTexture(GR_GL_TEXTURE0));
3953 GL_CALL(PixelStorei(GR_GL_UNPACK_ALIGNMENT, 1));
3954 GL_CALL(BindTexture(info.fTarget, info.fID));
3956 GL_CALL(TexParameteri(info.fTarget, GR_GL_TEXTURE_MAG_FILTER, GR_GL_NEAREST));
3957 GL_CALL(TexParameteri(info.fTarget, GR_GL_TEXTURE_MIN_FILTER, GR_GL_NEAREST));
3958 GL_CALL(TexParameteri(info.fTarget, GR_GL_TEXTURE_WRAP_S, GR_GL_CLAMP_TO_EDGE));
3959 GL_CALL(TexParameteri(info.fTarget, GR_GL_TEXTURE_WRAP_T, GR_GL_CLAMP_TO_EDGE));
3979 GL_CALL(PixelStorei(GR_GL_UNPACK_ROW_LENGTH, rowBytes / bpp));
4020 GL_CALL(TexImage2D(info.fTarget, i, internalFormat, width, height, 0, externalFormat,
4026 GL_CALL(PixelStorei(GR_GL_UNPACK_ROW_LENGTH, 0));
4031 GL_CALL(BindTexture(info.fTarget, 0));
4059 GL_CALL(DeleteTextures(1, &info.fID));
4093 GL_CALL(DeleteTextures(1, &colorID));
4095 GL_CALL(DeleteRenderbuffers(1, &colorID));
4099 GL_CALL(DeleteRenderbuffers(1, &stencilID));
4104 GL_CALL(GenTextures(1, &colorID));
4106 GL_CALL(GenRenderbuffers(1, &colorID));
4108 GL_CALL(GenRenderbuffers(1, &stencilID));
4117 GL_CALL(GenFramebuffers(1, &info.fFBOID));
4128 GL_CALL(BindTexture(GR_GL_TEXTURE_2D, colorID));
4129 GL_CALL(TexImage2D(GR_GL_TEXTURE_2D, 0, colorBufferFormat, w, h, 0, externalFormat,
4131 GL_CALL(FramebufferTexture2D(GR_GL_FRAMEBUFFER, GR_GL_COLOR_ATTACHMENT0, GR_GL_TEXTURE_2D,
4134 GL_CALL(BindRenderbuffer(GR_GL_RENDERBUFFER, colorID));
4137 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, GR_GL_COLOR_ATTACHMENT0,
4140 GL_CALL(BindRenderbuffer(GR_GL_RENDERBUFFER, stencilID));
4144 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, GR_GL_STENCIL_ATTACHMENT, GR_GL_RENDERBUFFER,
4147 GL_CALL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER, GR_GL_DEPTH_ATTACHMENT,
4191 GL_CALL(Finish());
4232 GL_CALL(Flush());
4287 GL_CALL(WaitSync(glSem->sync(), 0, GR_GL_TIMEOUT_IGNORED));
4291 GL_CALL(DeleteSync(sync));
4295 GL_CALL(InsertEventMarker(strlen(msg), msg));
4303 GL_CALL(Flush());