aboutsummaryrefslogtreecommitdiff
path: root/tests/GLProgramsTest.cpp
diff options
context:
space:
mode:
authorjvanverth <jvanverth@google.com>2015-04-27 10:36:27 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-27 10:36:27 -0700
commit505306374de4ceca7b6dfcf155fb64840c7f07a0 (patch)
treef5e1e81a7941f67bd51fe41b403a8dbaba4f2436 /tests/GLProgramsTest.cpp
parentd79c549467e5e7be025e38357f179b7965ed2ec3 (diff)
Remove legacy NVPR support
BUG=skia: Review URL: https://codereview.chromium.org/1110553003
Diffstat (limited to 'tests/GLProgramsTest.cpp')
-rw-r--r--tests/GLProgramsTest.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 41c66798da..df932f359f 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -153,7 +153,6 @@ static void set_random_color_coverage_stages(GrGLGpu* gpu,
int numProcs = random->nextULessThan(maxStages + 1);
int numColorProcs = random->nextULessThan(numProcs + 1);
- int currTextureCoordSet = 0;
for (int s = 0; s < numProcs;) {
SkAutoTUnref<const GrFragmentProcessor> fp(
GrProcessorTestFactory<GrFragmentProcessor>::CreateStage(random,
@@ -162,18 +161,6 @@ static void set_random_color_coverage_stages(GrGLGpu* gpu,
dummyTextures));
SkASSERT(fp);
- // If adding this effect would exceed the max texture coord set count then generate a
- // new random effect.
- if (usePathRendering && gpu->glPathRendering()->texturingMode() ==
- GrGLPathRendering::FixedFunction_TexturingMode) {;
- int numTransforms = fp->numTransforms();
- if (currTextureCoordSet + numTransforms >
- gpu->glCaps().maxFixedFunctionTextureCoords()) {
- continue;
- }
- currTextureCoordSet += numTransforms;
- }
-
// finally add the stage to the correct pipeline in the drawstate
if (s < numColorProcs) {
pipelineBuilder->addColorProcessor(fp);