Warn on bad rendering intents (instead of valid ones)
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2274843002 Review-Url: https://codereview.chromium.org/2274843002
This commit is contained in:
parent
8aeec39f1f
commit
3bf7509c3f
@ -138,7 +138,7 @@ struct ICCProfileHeader {
|
||||
// Should we treat different rendering intents differently?
|
||||
// Valid rendering intents include kPerceptual (0), kRelative (1),
|
||||
// kSaturation (2), and kAbsolute (3).
|
||||
if (fRenderingIntent <= 3) {
|
||||
if (fRenderingIntent > 3) {
|
||||
// Warn rather than fail here. Occasionally, we see perfectly
|
||||
// normal profiles with wacky rendering intents.
|
||||
SkColorSpacePrintf("Warning, bad rendering intent.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user