Roll skia/third_party/skcms c4941e8..71966da (1 commits)
https://skia.googlesource.com/skcms.git/+log/c4941e8..71966da 2018-04-23 mtklein@chromium.org fail skcms_Parse() for useless profiles 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: I8c36fb89675b9b1639a1d494641d8993d3723c93 Reviewed-on: https://skia-review.googlesource.com/122980 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>
This commit is contained in:
parent
122b38560f
commit
7230861301
7
third_party/skcms/src/ICCProfile.c
vendored
7
third_party/skcms/src/ICCProfile.c
vendored
@ -651,6 +651,11 @@ bool skcms_GetTagBySignature(const skcms_ICCProfile* profile, uint32_t sig, skcm
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool usable_as_src(const skcms_ICCProfile* profile) {
|
||||
return profile->has_A2B
|
||||
|| (profile->has_trc && profile->has_toXYZD50);
|
||||
}
|
||||
|
||||
bool skcms_Parse(const void* buf, size_t len, skcms_ICCProfile* profile) {
|
||||
assert(SAFE_SIZEOF(header_Layout) == 132);
|
||||
|
||||
@ -773,7 +778,7 @@ bool skcms_Parse(const void* buf, size_t len, skcms_ICCProfile* profile) {
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
return usable_as_src(profile);
|
||||
}
|
||||
|
||||
const skcms_ICCProfile skcms_sRGB_profile = {
|
||||
|
2
third_party/skcms/version.sha1
vendored
2
third_party/skcms/version.sha1
vendored
@ -1 +1 @@
|
||||
c4941e8c027c3e78ee56785fc1a90d10666671c9
|
||||
71966da6705d6e49b518e56bb829708b797b67b9
|
Loading…
Reference in New Issue
Block a user