diff options
author | egdaniel <egdaniel@google.com> | 2014-10-15 13:49:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-15 13:49:02 -0700 |
commit | 9e4d6d180fcfbbe2ea242196cc0affd45b7ed7ae (patch) | |
tree | d017bec2b2fa112755f361fefdd0bdf6ddf823d0 /src/gpu/effects/GrConvexPolyEffect.cpp | |
parent | ebd90ee211bb8740ff0e600632a7220ae82146a7 (diff) |
Move willUseInputColor check to computeInvariantOutput
BUG=skia:
Review URL: https://codereview.chromium.org/656503002
Diffstat (limited to 'src/gpu/effects/GrConvexPolyEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrConvexPolyEffect.cpp | 2 |
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(); } |