Lines Matching refs:drawState
39 void GrGLProgramDesc::Build(const GrDrawState& drawState,
62 firstEffectiveColorStage = drawState.numColorStages();
65 const GrEffect* effect = drawState.getColorStage(firstEffectiveColorStage).getEffect()->get();
73 firstEffectiveCoverageStage = drawState.numCoverageStages();
76 const GrEffect* effect = drawState.getCoverageStage(firstEffectiveCoverageStage).getEffect()->get();
86 bool requiresColorAttrib = !skipColor && drawState.hasColorVertexAttribute();
87 bool requiresCoverageAttrib = !skipCoverage && drawState.hasCoverageVertexAttribute();
90 drawState.hasLocalCoordAttribute();
94 (!requiresColorAttrib && 0xffffffff == drawState.getColor()) ||
97 int numEffects = (skipColor ? 0 : (drawState.numColorStages() - firstEffectiveColorStage)) +
98 (skipCoverage ? 0 : (drawState.numCoverageStages() - firstEffectiveCoverageStage));
121 for (int s = firstEffectiveColorStage; s < drawState.numColorStages(); ++s) {
123 get_key_and_update_stats(drawState.getColorStage(s), gpu->glCaps(),
129 for (int s = firstEffectiveCoverageStage; s < drawState.numCoverageStages(); ++s) {
131 get_key_and_update_stats(drawState.getCoverageStage(s), gpu->glCaps(),
162 bool covIsSolidWhite = !requiresCoverageAttrib && 0xffffffff == drawState.getCoverageColor();
188 header->fFragPosKey = GrGLShaderBuilder::KeyForFragmentPosition(drawState.getRenderTarget(),
195 header->fPositionAttributeIndex = drawState.positionAttributeIndex();
196 header->fLocalCoordAttributeIndex = drawState.localCoordAttributeIndex();
199 int availableAttributeIndex = drawState.getVertexAttribCount();
201 header->fColorAttributeIndex = drawState.colorVertexAttributeIndex();
211 header->fCoverageAttributeIndex = drawState.coverageVertexAttributeIndex();
226 if (!drawState.isCoverageDrawing() && !skipCoverage &&
227 (drawState.numCoverageStages() > 0 || requiresCoverageAttrib)) {
253 for (int s = firstEffectiveColorStage; s < drawState.numColorStages(); ++s) {
254 colorStages->push_back(&drawState.getColorStage(s));
264 for (int s = firstEffectiveCoverageStage; s < drawState.numCoverageStages(); ++s) {
265 array->push_back(&drawState.getCoverageStage(s));