diff options
author | 2013-03-26 14:45:27 +0000 | |
---|---|---|
committer | 2013-03-26 14:45:27 +0000 | |
commit | 4647f9059825c062169d4d454c12640d82ae16c0 (patch) | |
tree | 9f7f237472cecc53d47400d3a718a2d1a7d6aad3 /tests | |
parent | 36ee020fc7da44465382eb7771935385093e5f33 (diff) |
Replace edge types with GrEdgeEffect.
This strips out last of the edge types and the fixed function edge attribute and replaces them with using GrEdgeEffect. Also fixes a minor bug when checking attribute counts -- it was using kAttribIndexCount instead of kVertexAttribCnt.
Original Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/13069003
git-svn-id: http://skia.googlecode.com/svn/trunk@8392 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/GLProgramsTest.cpp | 19 |
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; |