From a435560cfe442b7e735cb65cd2afdc22343c0797 Mon Sep 17 00:00:00 2001 From: "tpayne@chromium.org" Date: Thu, 24 May 2012 19:54:04 +0000 Subject: [PATCH] Applied upstream patch for image with profiles that contain a LUT BUG=129452 TEST=None Review URL: https://chromiumcodereview.appspot.com/10439002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138870 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/qcms/README.chromium | 2 ++ third_party/qcms/src/transform.c | 16 +++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/third_party/qcms/README.chromium b/third_party/qcms/README.chromium index 8f87f063b249f2..7043ed0d28a798 100644 --- a/third_party/qcms/README.chromium +++ b/third_party/qcms/README.chromium @@ -19,3 +19,5 @@ google.patch - Add bgra output support. Apply with patch -p1 < google.patch - Use HAVE_POSIX_MEMALIGN instead of HAS_POSIX_MEMALIG (https://bugzilla.mozilla.org/show_bug.cgi?id=692922) +Applied upstream patch: + - https://bug752254.bugzilla.mozilla.org/attachment.cgi?id=626102 diff --git a/third_party/qcms/src/transform.c b/third_party/qcms/src/transform.c index 527c0358202496..1f4e72b3d43671 100644 --- a/third_party/qcms/src/transform.c +++ b/third_party/qcms/src/transform.c @@ -1059,13 +1059,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; - - /* don't precache since we will use the mBA LUT */ - if (profile->mBA) - 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 if we do not have the TRC curves */ if (!profile->redTRC || !profile->greenTRC || !profile->blueTRC)