diff options
author | Brian Salomon <bsalomon@google.com> | 2017-02-21 11:31:40 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-21 18:29:37 +0000 |
commit | 00b2cca30033c984662ccc7d1eaed962b3714ad7 (patch) | |
tree | 97a07f4d63c8240eda0ab86db3e9882299b19c8e /src/gpu/GrXferProcessor.cpp | |
parent | 4eabd5d88aec712f5d0643a2f814aea7403d2119 (diff) |
Simplify GrPaint::isConstantBlendedColor to avoid FP analysis and XP virtual calls
This was the only non-test user of GrXPFactory::isConstantPreCoverageBlendedColor which is now removed.
Change-Id: Ic1c130d30a44e1a955b89f8912433a3c9df2e61e
Reviewed-on: https://skia-review.googlesource.com/8776
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrXferProcessor.cpp')
-rw-r--r-- | src/gpu/GrXferProcessor.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gpu/GrXferProcessor.cpp b/src/gpu/GrXferProcessor.cpp index e6a1817aba..0d93079d2c 100644 --- a/src/gpu/GrXferProcessor.cpp +++ b/src/gpu/GrXferProcessor.cpp @@ -211,15 +211,6 @@ bool GrXPFactory::WillReadDst(const GrXPFactory* factory, const GrProcOptInfo& c return GrPorterDuffXPFactory::WillSrcOverReadDst(colorInput, coverageInput); } -bool GrXPFactory::IsPreCoverageBlendedColorConstant(const GrXPFactory* factory, - const GrProcOptInfo& colorInput, - GrColor* color) { - if (factory) { - return factory->isPreCoverageBlendedColorConstant(colorInput, color); - } - return GrPorterDuffXPFactory::IsSrcOverPreCoverageBlendedColorConstant(colorInput, color); -} - bool GrXPFactory::willReadDstInShader(const GrCaps& caps, const GrPipelineAnalysis& analysis) const { if (analysis.fUsesPLSDstRead) { |