Implement multi-color-stops in linear gradients using Sk4f
authorreed <reed@google.com>
Tue, 17 Nov 2015 16:12:19 +0000 (08:12 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 17 Nov 2015 16:12:19 +0000 (08:12 -0800)
commitf3182ebc72db2bf2e24119d5cea05f270473a491
tree68242d9c47920671bf79e53566176b07ddb6d8c5
parent44509faecef54ba57e56d60dfc0b91cfefba2d5c
Implement multi-color-stops in linear gradients using Sk4f

#define SK_SUPPORT_LEGACY_LINEAR_GRADIENT_TABLE to restore the old behavior

BUG=skia:517

Review URL: https://codereview.chromium.org/1436663003
src/effects/gradients/SkGradientShaderPriv.h
src/effects/gradients/SkLinearGradient.cpp
src/effects/gradients/SkLinearGradient.h