aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/shaders/gradients/SkGradientShaderPriv.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-10-20 11:27:49 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-20 15:49:56 +0000
commitfe3e858e751609c3a9cbf7ad710ed415ea7213fc (patch)
tree08b23415e4b4843329da00f3704825322b531ae6 /src/shaders/gradients/SkGradientShaderPriv.h
parentdbfecd06adeb03e9365f3539e113412c0b18785e (diff)
Add clamped/unclamped xform to GrColorSpaceXform
Use that in analytic gradient setup for future-proofing. Also fixed several out-of-date comments in gradient code. Bug: skia: Change-Id: I79726cad786c22f80e08cdc2b7a1e15ae27ecd5a Reviewed-on: https://skia-review.googlesource.com/62320 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/shaders/gradients/SkGradientShaderPriv.h')
-rw-r--r--src/shaders/gradients/SkGradientShaderPriv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shaders/gradients/SkGradientShaderPriv.h b/src/shaders/gradients/SkGradientShaderPriv.h
index 23ff30f9d4..1fd5ca9141 100644
--- a/src/shaders/gradients/SkGradientShaderPriv.h
+++ b/src/shaders/gradients/SkGradientShaderPriv.h
@@ -516,11 +516,11 @@ private:
const char* inputColor);
enum {
- // First bit for premul before/after interp
+ // First bit for premul before/after interpolation
kPremulBeforeInterpKey = 1,
// Next three bits for 2/3 color type or different special
- // hard stop cases (neither means using texture atlas)
+ // hard stop cases ('none' means using texture atlas)
kTwoColorKey = 2,
kThreeColorKey = 4,