diff options
author | 2015-02-13 09:00:33 -0800 | |
---|---|---|
committer | 2015-02-13 09:00:33 -0800 | |
commit | e36914cb205699526988127a827d1a76c9a98d39 (patch) | |
tree | 3676983831392cede5b42a471d905bed491d3dfd /src/gpu/GrXferProcessor.cpp | |
parent | f89f60f6972569a41fa737c786d238559027fede (diff) |
Pass in ProcOptInfos into willNeedDstCopy on XPs
BUG=skia:
Review URL: https://codereview.chromium.org/912413002
Diffstat (limited to 'src/gpu/GrXferProcessor.cpp')
-rw-r--r-- | src/gpu/GrXferProcessor.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrXferProcessor.cpp b/src/gpu/GrXferProcessor.cpp index e98ae407a8..321dcfd5e8 100644 --- a/src/gpu/GrXferProcessor.cpp +++ b/src/gpu/GrXferProcessor.cpp @@ -38,7 +38,7 @@ GrXferProcessor* GrXPFactory::createXferProcessor(const GrProcOptInfo& colorPOI, const GrDeviceCoordTexture* dstCopy, const GrDrawTargetCaps& caps) const { #ifdef SK_DEBUG - if (this->willReadDstColor()) { + if (this->willReadDstColor(colorPOI, coveragePOI)) { if (!caps.dstReadInShaderSupport()) { SkASSERT(dstCopy && dstCopy->texture()); } else { @@ -52,7 +52,8 @@ GrXferProcessor* GrXPFactory::createXferProcessor(const GrProcOptInfo& colorPOI, return this->onCreateXferProcessor(colorPOI, coveragePOI, dstCopy); } -bool GrXPFactory::willNeedDstCopy(const GrDrawTargetCaps& caps) const { - return (this->willReadDstColor() && !caps.dstReadInShaderSupport()); +bool GrXPFactory::willNeedDstCopy(const GrDrawTargetCaps& caps, const GrProcOptInfo& colorPOI, + const GrProcOptInfo& coveragePOI) const { + return (this->willReadDstColor(colorPOI, coveragePOI) && !caps.dstReadInShaderSupport()); } |