diff options
author | 2017-10-02 09:37:28 -0700 | |
---|---|---|
committer | 2017-10-02 17:14:55 +0000 | |
commit | 0cea26aaf27a3e55dabead3f8da1cd7cbcf6ac73 (patch) | |
tree | 9a6aec28f0f3f81f4af0d9bd4399b17e03b3170d /src/core | |
parent | 97abf014b40cc17c4100768299ef8cccd335aff7 (diff) |
fix comments in SkColorSpaceXform.cpp
No code bugs as far as I can tell.
BUG=skia:7095
Change-Id: I56d848b6225d81bf2481235b9294f0c3e7f53f5b
Reviewed-on: https://skia-review.googlesource.com/53823
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkColorSpaceXform.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkColorSpaceXform.cpp b/src/core/SkColorSpaceXform.cpp index b936aec489..9080ca0ec8 100644 --- a/src/core/SkColorSpaceXform.cpp +++ b/src/core/SkColorSpaceXform.cpp @@ -143,11 +143,11 @@ static void build_table_linear_to_gamma(uint8_t* outTable, const float* inTable, static float inverse_parametric(float x, float g, float a, float b, float c, float d, float e, float f) { // We need to take the inverse of the following piecewise function. - // Y = (aX + b)^g + c for X >= d - // Y = eX + f otherwise + // Y = (aX + b)^g + e for X >= d + // Y = cX + f otherwise // Assume that the gamma function is continuous, or this won't make much sense anyway. - // Plug in |d| to the first equation to calculate the new piecewise interval. + // Plug in |d| to the second equation to calculate the new piecewise interval. // Then simply use the inverse of the original functions. float interval = c * d + f; if (x < interval) { |