Lines Matching full:programid
579 GrGLuint programId = 0;
580 GL_CALL_RET(programId, CreateProgram());
581 if (!programId) {
585 if (!this->compileAndAttachShaders(programId)) {
586 GL_CALL(DeleteProgram(programId));
590 this->bindProgramLocations(programId);
592 fUniformManager.getUniformLocations(programId, fUniforms);
595 GL_CALL(LinkProgram(programId));
604 GL_CALL(GetProgramiv(programId, GR_GL_LINK_STATUS, &linked));
607 GL_CALL(GetProgramiv(programId, GR_GL_INFO_LOG_LENGTH, &infoLen));
613 GL_CALL(GetProgramInfoLog(programId,
620 GL_CALL(DeleteProgram(programId));
626 fUniformManager.getUniformLocations(programId, fUniforms);
628 *outProgramId = programId;
635 GrGLuint programId,
683 GR_GL_CALL(gli, AttachShader(programId, shaderId));
688 bool GrGLShaderBuilder::compileAndAttachShaders(GrGLuint programId) const {
703 if (!attach_shader(fGpu->glContext(), programId, GR_GL_FRAGMENT_SHADER, fragShaderSrc)) {
710 void GrGLShaderBuilder::bindProgramLocations(GrGLuint programId) const {
712 GL_CALL(BindFragDataLocation(programId, 0, declared_color_output_name()));
715 GL_CALL(BindFragDataLocationIndexed(programId, 0, 1, dual_source_output_name()));
873 bool GrGLFullShaderBuilder::compileAndAttachShaders(GrGLuint programId) const {
882 if (!attach_shader(glCtx, programId, GR_GL_VERTEX_SHADER, vertShaderSrc)) {
910 if (!attach_shader(glCtx, programId, GR_GL_GEOMETRY_SHADER, geomShaderSrc)) {
916 return this->INHERITED::compileAndAttachShaders(programId);
919 void GrGLFullShaderBuilder::bindProgramLocations(GrGLuint programId) const {
920 this->INHERITED::bindProgramLocations(programId);
926 GL_CALL(BindAttribLocation(programId,
930 GL_CALL(BindAttribLocation(programId,
935 GL_CALL(BindAttribLocation(programId,
940 GL_CALL(BindAttribLocation(programId,
947 GL_CALL(BindAttribLocation(programId, attrib->fIndex, attrib->fName.c_str()));