Home | History | Annotate | Download | only in gl

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));
118 for (int s = firstEffectiveColorStage; s < drawState.numColorStages(); ++s) {
120 get_key_and_update_stats(drawState.getColorStage(s), gpu->glCaps(),
126 for (int s = firstEffectiveCoverageStage; s < drawState.numCoverageStages(); ++s) {
128 get_key_and_update_stats(drawState.getCoverageStage(s), gpu->glCaps(),
159 bool covIsSolidWhite = !requiresCoverageAttrib && 0xffffffff == drawState.getCoverageColor();
185 header->fFragPosKey = GrGLShaderBuilder::KeyForFragmentPosition(drawState.getRenderTarget(),
192 header->fPositionAttributeIndex = drawState.positionAttributeIndex();
193 header->fLocalCoordAttributeIndex = drawState.localCoordAttributeIndex();
196 int availableAttributeIndex = drawState.getVertexAttribCount();
198 header->fColorAttributeIndex = drawState.colorVertexAttributeIndex();
208 header->fCoverageAttributeIndex = drawState.coverageVertexAttributeIndex();
224 if (!drawState.isCoverageDrawing() && !skipCoverage &&
225 (drawState.numCoverageStages() > 0 || requiresCoverageAttrib)) {
228 if (drawState.getStencil().doesWrite()) {
257 for (int s = firstEffectiveColorStage; s < drawState.numColorStages(); ++s) {
258 colorStages->push_back(&drawState.getColorStage(s));
268 for (int s = firstEffectiveCoverageStage; s < drawState.numCoverageStages(); ++s) {
269 array->push_back(&drawState.getCoverageStage(s));