aboutsummaryrefslogtreecommitdiff
path: root/tests/GLProgramsTest.cpp
diff options
context:
space:
mode:
authoregdaniel <egdaniel@google.com>2015-01-20 06:34:51 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-20 06:34:51 -0800
commit71e236c03e65ff6b48a3d0eb091f814dd3e3a928 (patch)
tree3b3ca3eb421a45b6aaf151c2e227cc1de4655a38 /tests/GLProgramsTest.cpp
parentb2b416d3847c138a0a13876fdc1cdeae607b7e31 (diff)
Remove willReadDst from GrFragmentProcessor.
Since only XP's can read dst now, there is no reason to have this query on GrFP. This also triggered a chain reaction of cleaning up/removing unnecessary code elsewhere. BUG=skia: Review URL: https://codereview.chromium.org/851143003
Diffstat (limited to 'tests/GLProgramsTest.cpp')
-rw-r--r--tests/GLProgramsTest.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 70b95e003d..0a28ba2feb 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -157,11 +157,6 @@ static void set_random_color_coverage_stages(GrGLGpu* gpu,
dummyTextures));
SkASSERT(fp);
- // don't add dst color reads to coverage stage
- if (s >= numColorProcs && fp->willReadDstColor()) {
- continue;
- }
-
// If adding this effect would exceed the max texture coord set count then generate a
// new random effect.
if (usePathRendering && gpu->glPathRendering()->texturingMode() ==
@@ -310,7 +305,7 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
} else {
primProc = pathProc.get();
}
- if (!this->setupDstReadIfNecessary(&ds, primProc, &dstCopy, NULL)) {
+ if (!this->setupDstReadIfNecessary(&ds, &dstCopy, NULL)) {
SkDebugf("Couldn't setup dst read texture");
return false;
}