aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrXferProcessor.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-03-03 14:30:15 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-06 13:39:09 +0000
commit1c10fddd1f563412f501e49db1d21844c4d5b058 (patch)
treef064c851fffd89726f648d6fe68e5af8a96983be /src/gpu/GrXferProcessor.cpp
parentfc75b5afdef9bf896e20de9e88ca99f336616559 (diff)
Remove XP override color.
The only use case for this was using the blend constant for LCD text. Now instead of overriding the op's color with an alpha we upload the alpha as a uniform. This also removes two unused parameters from GrXferProcessor::getOptimizations. Change-Id: I8268da9904a5d26649c6ae81a5705b0930893904 Reviewed-on: https://skia-review.googlesource.com/9221 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrXferProcessor.cpp')
-rw-r--r--src/gpu/GrXferProcessor.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gpu/GrXferProcessor.cpp b/src/gpu/GrXferProcessor.cpp
index 56653b5eb1..a926812818 100644
--- a/src/gpu/GrXferProcessor.cpp
+++ b/src/gpu/GrXferProcessor.cpp
@@ -31,13 +31,8 @@ GrXferProcessor::GrXferProcessor(const DstTexture* dstTexture,
}
GrXferProcessor::OptFlags GrXferProcessor::getOptimizations(
- const FragmentProcessorAnalysis& analysis,
- bool doesStencilWrite,
- GrColor* overrideColor,
- const GrCaps& caps) const {
- GrXferProcessor::OptFlags flags =
- this->onGetOptimizations(analysis, doesStencilWrite, overrideColor, caps);
- return flags;
+ const FragmentProcessorAnalysis& analysis) const {
+ return this->onGetOptimizations(analysis);
}
bool GrXferProcessor::hasSecondaryOutput() const {