aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gradients.cpp
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-09-12 11:20:56 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-12 15:39:00 +0000
commit2ab4b2b871c01aa3dd6d2e43883461c722f01680 (patch)
tree8e3c242983ed75b99a7c419c5cce946acf6e8341 /gm/gradients.cpp
parenta6b646986bf554e9f537494cfe1d7d577fdac796 (diff)
Remove symmetric three stop special case
Just let the general three-stop shader handle all three-stop gradients. Also, pre-compute values derived from the middle stop to remove all division (and actually convert computation to FMA form). Bug: skia: Change-Id: I1aae069d929d1a942c38aa2e2f3fd5fb7d9b2f10 Reviewed-on: https://skia-review.googlesource.com/45800 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'gm/gradients.cpp')
-rw-r--r--gm/gradients.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/gradients.cpp b/gm/gradients.cpp
index 08d65f7d12..59f7695fbb 100644
--- a/gm/gradients.cpp
+++ b/gm/gradients.cpp
@@ -1090,8 +1090,8 @@ DEF_SIMPLE_GM(gradients_interesting, canvas, 640, 1300) {
int count;
} configs[] = {
{ colors2, nullptr, 2 }, // kTwo_ColorType
- { colors3, nullptr, 3 }, // kSymmetricThree_ColorType
- { colors3, softRight, 3 }, // kThree_ColorType
+ { colors3, nullptr, 3 }, // kThree_ColorType (simple)
+ { colors3, softRight, 3 }, // kThree_ColorType (tricky)
{ colors3, hardLeft, 3 }, // kHardStopLeftEdged_ColorType
{ colors3, hardRight, 3 }, // kHardStopRightEdged_ColorType
{ colors4, hardCenter, 4 }, // kSingleHardStop_ColorType