diff options
author | 2015-02-13 09:00:33 -0800 | |
---|---|---|
committer | 2015-02-13 09:00:33 -0800 | |
commit | e36914cb205699526988127a827d1a76c9a98d39 (patch) | |
tree | 3676983831392cede5b42a471d905bed491d3dfd /tests | |
parent | f89f60f6972569a41fa737c786d238559027fede (diff) |
Pass in ProcOptInfos into willNeedDstCopy on XPs
BUG=skia:
Review URL: https://codereview.chromium.org/912413002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/GLProgramsTest.cpp | 10 |
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; } |