diff options
author | 2018-04-25 17:02:32 +0000 | |
---|---|---|
committer | 2018-04-25 17:25:57 +0000 | |
commit | f0db23633f754cc3888494ea8d37e5dd8d495bfd (patch) | |
tree | f9f196a943b42a3ce5129d6cd3aa194e70ce72de /third_party/skcms/src | |
parent | 3c6ae62e0f9faeab0242fca2d19d61e64a7c8a6e (diff) |
Roll skia/third_party/skcms f3a576b..9e351c0 (1 commits)
https://skia.googlesource.com/skcms.git/+log/f3a576b..9e351c0
2018-04-25 mtklein@chromium.org relax is_identity_tf()
The AutoRoll server is located here: https://skcms-skia-roll.skia.org
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
TBR=stani@google.com
Change-Id: I8e85719c85ca3ebbe3da2bf66e75968fd251c7a2
Reviewed-on: https://skia-review.googlesource.com/123656
Commit-Queue: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Reviewed-by: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Diffstat (limited to 'third_party/skcms/src')
-rw-r--r-- | third_party/skcms/src/Transform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/skcms/src/Transform.c b/third_party/skcms/src/Transform.c index 9e893cf369..818294850e 100644 --- a/third_party/skcms/src/Transform.c +++ b/third_party/skcms/src/Transform.c @@ -312,8 +312,8 @@ bool g_skcms_dump_profile = false; #endif static bool is_identity_tf(const skcms_TransferFunction* tf) { - static const skcms_TransferFunction I = {1,1,0,0,0,0,0}; - return 0 == memcmp(&I, tf, sizeof(I)); + return tf->g == 1 && tf->a == 1 + && tf->b == 0 && tf->c == 0 && tf->d == 0 && tf->e == 0 && tf->f == 0; } typedef struct { |