diff options
author | ethannicholas <ethannicholas@google.com> | 2016-01-30 09:59:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-30 09:59:10 -0800 |
commit | 2279325d539700ee3da29d6e874b3b3ce1dcf49c (patch) | |
tree | fa68207d94b4919c1759578a5d5192786d83c6d6 /src/gpu/GrXferProcessor.cpp | |
parent | ad38ed6003ad89a21e40d76987db4bba7d42f3d0 (diff) |
added support for PLS path rendering
BUG=skia:3555
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1541903002
Committed: https://skia.googlesource.com/skia/+/7df3f5e127f8016d17b637cc48a6a4718f1a6822
Review URL: https://codereview.chromium.org/1541903002
Diffstat (limited to 'src/gpu/GrXferProcessor.cpp')
-rw-r--r-- | src/gpu/GrXferProcessor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/GrXferProcessor.cpp b/src/gpu/GrXferProcessor.cpp index b07b9720df..01534a3adb 100644 --- a/src/gpu/GrXferProcessor.cpp +++ b/src/gpu/GrXferProcessor.cpp @@ -217,3 +217,10 @@ bool GrXPFactory::willNeedDstTexture(const GrCaps& caps, return (this->willReadDstColor(caps, optimizations, hasMixedSamples) && !caps.shaderCaps()->dstReadInShaderSupport()); } + +bool GrXPFactory::willReadDstColor(const GrCaps& caps, + const GrPipelineOptimizations& optimizations, + bool hasMixedSamples) const { + return optimizations.fOverrides.fUsePLSDstRead || this->onWillReadDstColor(caps, optimizations, + hasMixedSamples); +} |