Skip to content

Commit

Permalink
Applied upstream patch for image with profiles that contain a LUT
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tpayne@chromium.org committed May 24, 2012
1 parent 26d4b33 commit a435560
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions third_party/qcms/README.chromium
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 9 additions & 7 deletions third_party/qcms/src/transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a435560

Please sign in to comment.