From f0db23633f754cc3888494ea8d37e5dd8d495bfd Mon Sep 17 00:00:00 2001 From: "skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com" Date: Wed, 25 Apr 2018 17:02:32 +0000 Subject: 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 Reviewed-by: skcms-skia-autoroll --- third_party/skcms/src/Transform.c | 4 ++-- third_party/skcms/version.sha1 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'third_party') 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 { diff --git a/third_party/skcms/version.sha1 b/third_party/skcms/version.sha1 index d9b63702b6..613794e829 100755 --- a/third_party/skcms/version.sha1 +++ b/third_party/skcms/version.sha1 @@ -1 +1 @@ -f3a576b6e8d430f515b6e6ff485b4f848fc6925f \ No newline at end of file +9e351c034c2b8f6f3166efeaa65c0d4d4f4fa641 \ No newline at end of file -- cgit v1.2.3