diff options
author | 2017-02-21 11:31:40 -0500 | |
---|---|---|
committer | 2017-02-21 18:29:37 +0000 | |
commit | 00b2cca30033c984662ccc7d1eaed962b3714ad7 (patch) | |
tree | 97a07f4d63c8240eda0ab86db3e9882299b19c8e /src/gpu/GrPaint.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/GrPaint.cpp')
-rw-r--r-- | src/gpu/GrPaint.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gpu/GrPaint.cpp b/src/gpu/GrPaint.cpp index d17b9abec0..6d37adf5e9 100644 --- a/src/gpu/GrPaint.cpp +++ b/src/gpu/GrPaint.cpp @@ -74,12 +74,3 @@ void GrPaint::addCoverageTextureProcessor(GrContext* ctx, sk_sp<GrTextureProxy> this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Make(ctx, std::move(proxy), nullptr, matrix, params)); } - -bool GrPaint::internalIsConstantBlendedColor(GrColor paintColor, GrColor* color) const { - GrProcOptInfo colorProcInfo((GrPipelineInput(paintColor))); - colorProcInfo.analyzeProcessors( - sk_sp_address_as_pointer_address(fColorFragmentProcessors.begin()), - this->numColorFragmentProcessors()); - - return GrXPFactory::IsPreCoverageBlendedColorConstant(fXPFactory, colorProcInfo, color); -} |