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:
msarett 2016-08-24 06:22:41 -07:00 committed by Commit bot
parent 8aeec39f1f
commit 3bf7509c3f

View File

@ -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");