diff options
author | Brian Salomon <bsalomon@google.com> | 2017-03-06 11:29:48 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-06 17:10:10 +0000 |
commit | 42c456fd20bd45dd02f6d5eb0af7acf04341b1ee (patch) | |
tree | 8ef8bc1815f2725a7d40822c78d12b1ae6f10db6 /src/gpu/GrXferProcessor.cpp | |
parent | 0bb6f38e511365670b9917ad76ece6f0bee9e282 (diff) |
Remove PLS path renderer
Change-Id: Ib727b0749a5a7da95832970e79804417e8b6a247
Reviewed-on: https://skia-review.googlesource.com/9300
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrXferProcessor.cpp')
-rw-r--r-- | src/gpu/GrXferProcessor.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gpu/GrXferProcessor.cpp b/src/gpu/GrXferProcessor.cpp index a926812818..3b8a2bfb87 100644 --- a/src/gpu/GrXferProcessor.cpp +++ b/src/gpu/GrXferProcessor.cpp @@ -188,7 +188,7 @@ bool GrXPFactory::WillNeedDstTexture(const GrXPFactory* factory, const GrCaps& c const GrProcessorSet::FragmentProcessorAnalysis& analysis) { bool result; if (factory) { - result = !analysis.usesPLSDstRead() && !caps.shaderCaps()->dstReadInShaderSupport() && + result = !caps.shaderCaps()->dstReadInShaderSupport() && factory->willReadDstInShader(caps, analysis); } else { result = GrPorterDuffXPFactory::WillSrcOverNeedDstTexture(caps, analysis); @@ -197,14 +197,6 @@ bool GrXPFactory::WillNeedDstTexture(const GrXPFactory* factory, const GrCaps& c return result; } -bool GrXPFactory::willReadDstInShader(const GrCaps& caps, - const FragmentProcessorAnalysis& analysis) const { - if (analysis.usesPLSDstRead()) { - return true; - } - return this->onWillReadDstInShader(caps, analysis); -} - GrXferProcessor* GrXPFactory::createXferProcessor(const FragmentProcessorAnalysis& analysis, bool hasMixedSamples, const DstTexture* dstTexture, |