aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2015-04-23 09:40:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-23 09:40:23 -0700
commitf4f2b442228ca188cfb6b44ee3faa86773bb9db3 (patch)
tree6a5b34f56bf587ec3fbc2ff4cd3fac316d4d9719 /src/effects
parent03b03cad01628146bbb8d4f33c073bd0c77ee558 (diff)
Add onGetBlendInfo to GrXferProcessor
Adds an onGetBlendInfo method for GrXferProcessor subclasses to override instead of overriding getBlendInfo directly. This gives the base class a chance to initialize the struct with default values before passing it on. As the BlendInfo struct grows, this will keep things simple and less error prone. BUG=skia: NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1049143002
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkArithmeticMode_gpu.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/effects/SkArithmeticMode_gpu.cpp b/src/effects/SkArithmeticMode_gpu.cpp
index cd5f09a4e3..46c5b0f75a 100644
--- a/src/effects/SkArithmeticMode_gpu.cpp
+++ b/src/effects/SkArithmeticMode_gpu.cpp
@@ -181,12 +181,6 @@ public:
GrColor* overrideColor,
const GrDrawTargetCaps& caps) override;
- void getBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override {
- blendInfo->fSrcBlend = kOne_GrBlendCoeff;
- blendInfo->fDstBlend = kZero_GrBlendCoeff;
- blendInfo->fBlendConstant = 0;
- }
-
float k1() const { return fK1; }
float k2() const { return fK2; }
float k3() const { return fK3; }