Simplify the gradient color stop optimizer
authorfmalita <fmalita@chromium.org>
Mon, 22 Aug 2016 13:28:57 +0000 (06:28 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Aug 2016 13:28:57 +0000 (06:28 -0700)
commit582a6564f36c90cc8e3e8c7338578023449b096c
tree3e3acdf355c342c22267b11aab10333137f84198
parent5122967e60915d2b4322bbd059f6f641c11f5216
Simplify the gradient color stop optimizer

We're just discarding the leftmost/rightmost stops -- this can be
achieved by simply adjusting the start offset and count.

R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2265803002

Review-Url: https://codereview.chromium.org/2265803002
src/effects/gradients/SkGradientShader.cpp