aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrConvexPolyEffect.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2014-10-15 13:49:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-15 13:49:02 -0700
commit9e4d6d180fcfbbe2ea242196cc0affd45b7ed7ae (patch)
treed017bec2b2fa112755f361fefdd0bdf6ddf823d0 /src/gpu/effects/GrConvexPolyEffect.cpp
parentebd90ee211bb8740ff0e600632a7220ae82146a7 (diff)
Move willUseInputColor check to computeInvariantOutput
Diffstat (limited to 'src/gpu/effects/GrConvexPolyEffect.cpp')
-rw-r--r--src/gpu/effects/GrConvexPolyEffect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/effects/GrConvexPolyEffect.cpp b/src/gpu/effects/GrConvexPolyEffect.cpp
index bafa64d13a..c84b540850 100644
--- a/src/gpu/effects/GrConvexPolyEffect.cpp
+++ b/src/gpu/effects/GrConvexPolyEffect.cpp
@@ -46,7 +46,7 @@ private:
virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE {
if (fRect.isEmpty()) {
// An empty rect will have no coverage anywhere.
- inout->setToTransparentBlack();
+ inout->mulByKnownAlpha(0);
} else {
inout->mulByUnknownAlpha();
}