aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-02-13 09:00:33 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-13 09:00:33 -0800
commite36914cb205699526988127a827d1a76c9a98d39 (patch)
tree3676983831392cede5b42a471d905bed491d3dfd /tests
parentf89f60f6972569a41fa737c786d238559027fede (diff)
Pass in ProcOptInfos into willNeedDstCopy on XPs
Diffstat (limited to 'tests')
-rw-r--r--tests/GLProgramsTest.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 08222bf32e..3813945cc2 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -298,14 +298,20 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
} else {
primProc = pathProc.get();
}
- if (!this->setupDstReadIfNecessary(pipelineBuilder, &dstCopy, NULL)) {
+
+ const GrProcOptInfo& colorPOI = pipelineBuilder.colorProcInfo(primProc);
+ const GrProcOptInfo& coveragePOI = pipelineBuilder.coverageProcInfo(primProc);
+
+ if (!this->setupDstReadIfNecessary(pipelineBuilder, colorPOI, coveragePOI, &dstCopy,
+ NULL)) {
SkDebugf("Couldn't setup dst read texture");
return false;
}
// create optimized draw state, setup readDst texture if required, and build a descriptor
// and program. ODS creation can fail, so we have to check
- GrPipeline pipeline(pipelineBuilder, primProc, *gpu->caps(), scissor, &dstCopy);
+ GrPipeline pipeline(pipelineBuilder, colorPOI, coveragePOI,
+ *gpu->caps(), scissor, &dstCopy);
if (pipeline.mustSkip()) {
continue;
}