aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrXferProcessor.cpp
diff options
context:
space:
mode:
authorGravatar ethannicholas <ethannicholas@google.com>2016-01-22 06:48:46 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-22 06:48:46 -0800
commit7df3f5e127f8016d17b637cc48a6a4718f1a6822 (patch)
tree224a919d0ed775835fb6dd40ddb2399214de081e /src/gpu/GrXferProcessor.cpp
parent7481e75830dfae1e9084ff62e3d8438879e31aaa (diff)
added support for PLS path rendering
Diffstat (limited to 'src/gpu/GrXferProcessor.cpp')
-rw-r--r--src/gpu/GrXferProcessor.cpp7
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);
+}