summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/qcms/README.chromium2
-rw-r--r--third_party/qcms/src/transform.c16
2 files changed, 11 insertions, 7 deletions
diff --git a/third_party/qcms/README.chromium b/third_party/qcms/README.chromium
index 8f87f06..7043ed0 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 527c035..1f4e72b 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)