From 328a35caa4e872e441f08347aadb803d1fb0c139 Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Tue, 22 May 2012 14:51:29 -0400 Subject: [PATCH] Bug 752254 - qcms - Prefer precache output curves even if a A2B/B2A CLUT is present. r=jmuizelaar --HG-- extra : rebase_source : fb5135434d7c7c80656a54e21b6e3b6216210b71 --- gfx/qcms/transform.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gfx/qcms/transform.c b/gfx/qcms/transform.c index f19517fc1b1..ce271fbcf7a 100644 --- a/gfx/qcms/transform.c +++ b/gfx/qcms/transform.c @@ -994,13 +994,15 @@ void qcms_profile_precache_output_transform(qcms_profile *profile) if (profile->color_space != RGB_SIGNATURE) return; - /* don't precache since we will use the B2A LUT */ - if (profile->B2A0) - return; + if (qcms_supports_iccv4) { + /* don't precache since we will use the B2A LUT */ + if (profile->B2A0) + return; - /* don't precache since we will use the mBA LUT */ - if (profile->mBA) - return; + /* don't precache since we will use the mBA LUT */ + if (profile->mBA) + return; + } /* don't precache if we do not have the TRC curves */ if (!profile->redTRC || !profile->greenTRC || !profile->blueTRC)