• Christopher Cameron's avatar
    Make ICCProfile no longer store a ColorSpace directly · ac3c37d5
    Christopher Cameron authored
    Make ICCProfile store the primaries and transfer function that it
    read or computed directly, rather than storing a ColorSpace object.
    Construct the ColorSpace object when requested, rather than storing it.
    
    Store an approximate (or guessed) primary matrix and transfer function
    for ICC_BASED ColorSpace objects. When computing the parametric
    approximation of an ICC_BASED ColorSpace object, use these values
    directly, rather than having to look them up from original ICCProfile.
    
    Bug: 766736
    Change-Id: I21d6dfaa38706f814f6c9dd54517806e99366113
    Reviewed-on: https://chromium-review.googlesource.com/745311Reviewed-by: default avatarFredrik Hubinette <hubbe@chromium.org>
    Commit-Queue: ccameron <ccameron@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#512958}
    ac3c37d5
icc_profile_unittest.cc 10.3 KB