Slightly generalize GPU hard stop gradient implementation.
authorBrian Salomon <bsalomon@google.com>
Thu, 13 Oct 2016 20:08:36 +0000 (16:08 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 13 Oct 2016 20:30:20 +0000 (20:30 +0000)
commit466ad9986851d48cd594efb9a2a5de27c620cdea
treea8eb4e3a72e23c9c2e9e3342817f60edd003329f
parent22f939e849013b7fc51374c289b5bf37e63dfdb1
Slightly generalize GPU hard stop gradient implementation.

With this CL we handle single off-center hardstop gradients.

BUG=chromium:543625

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3303

Change-Id: Ic754e87469475ce15865c54055b8ed492e1d826d
Reviewed-on: https://skia-review.googlesource.com/3303
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
gm/hardstop_gradients.cpp
src/effects/gradients/SkGradientShader.cpp
src/effects/gradients/SkGradientShaderPriv.h