aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-06-13 17:21:19 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-14 11:30:47 +0000
commitf018b7d607a0859e2d6078578a9632144694072f (patch)
tree05967e1777d04753b1a5415eec53fbfcd170fc70 /include
parentb57a861f183bfc6ae251297e3173faff0dc262f9 (diff)
SkColorSpaceXformSteps improvements and tests
Added some helper functions and put the booleans in a nested struct (this is motivated by upcoming changes). Added a unit test of steps against skcms, with round-tripping in both combinations. Change-Id: Iea3d60cd52edb5259b5576b1422ed6f856cde815 Reviewed-on: https://skia-review.googlesource.com/134660 Reviewed-by: Mike Klein <mtklein@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkColorSpace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkColorSpace.h b/include/core/SkColorSpace.h
index 66b101a22d..4265fcb352 100644
--- a/include/core/SkColorSpace.h
+++ b/include/core/SkColorSpace.h
@@ -71,7 +71,7 @@ struct SK_API SkColorSpaceTransferFn {
* Transform a single float by this transfer function.
* For negative inputs, returns sign(x) * f(abs(x)).
*/
- float operator()(float x) {
+ float operator()(float x) const {
SkScalar s = SkScalarSignAsScalar(x);
x = sk_float_abs(x);
if (x >= fD) {