aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/GLProgramsTest.cpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 1270b9305f..50ba9c3dce 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -39,17 +39,10 @@ void GrGLProgram::Desc::setRandom(SkMWCRandom* random,
fExperimentalGS = gpu->caps()->geometryShaderSupport() && random->nextBool();
#endif
- bool edgeAA = random->nextBool();
- if (edgeAA) {
- fAttribBindings |= GrDrawState::kEdge_AttribBindingsBit;
- if (gpu->caps()->shaderDerivativeSupport()) {
- fVertexEdgeType = (GrDrawState::VertexEdgeType)
- random->nextULessThan(GrDrawState::kVertexEdgeTypeCnt);
- fDiscardIfOutsideEdge = random->nextBool();
- } else {
- fVertexEdgeType = GrDrawState::kHairLine_EdgeType;
- fDiscardIfOutsideEdge = false;
- }
+ if (gpu->caps()->shaderDerivativeSupport()) {
+ fDiscardIfOutsideEdge = random->nextBool();
+ } else {
+ fDiscardIfOutsideEdge = false;
}
if (gpu->caps()->dualSourceBlendingSupport()) {
@@ -84,10 +77,6 @@ void GrGLProgram::Desc::setRandom(SkMWCRandom* random,
fCoverageAttributeIndex = attributeIndex;
++attributeIndex;
}
- if (fAttribBindings & GrDrawState::kEdge_AttribBindingsBit) {
- fEdgeAttributeIndex = attributeIndex;
- ++attributeIndex;
- }
if (fAttribBindings & GrDrawState::kLocalCoords_AttribBindingsBit) {
fLocalCoordsAttributeIndex = attributeIndex;
++attributeIndex;