Changeset 197699 in webkit


Ignore:
Timestamp:
Mar 7, 2016, 12:33:22 PM (9 years ago)
Author:
Simon Fraser
Message:

Use CGColorSpaceCopyICCData instead of CGColorSpaceCopyICCProfile
https://bugs.webkit.org/show_bug.cgi?id=155123
rdar://problem/24990256

Reviewed by Tim Horton.

On newer OSes, use CGColorSpaceCopyICCData().

  • Shared/mac/ColorSpaceData.mm:

(WebKit::ColorSpaceData::encode):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r197698 r197699  
     12016-03-07  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Use CGColorSpaceCopyICCData instead of CGColorSpaceCopyICCProfile
     4        https://bugs.webkit.org/show_bug.cgi?id=155123
     5        rdar://problem/24990256
     6
     7        Reviewed by Tim Horton.
     8       
     9        On newer OSes, use CGColorSpaceCopyICCData().
     10
     11        * Shared/mac/ColorSpaceData.mm:
     12        (WebKit::ColorSpaceData::encode):
     13
    1142016-03-07  Gavin Barraclough  <barraclough@apple.com>
    215
  • trunk/Source/WebKit2/Shared/mac/ColorSpaceData.mm

    r161148 r197699  
    5151
    5252        // Failing that, just encode the ICC data.
    53         if (RetainPtr<CFDataRef> profileData = adoptCF(CGColorSpaceCopyICCProfile(cgColorSpace.get()))) {
     53#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
     54        RetainPtr<CFDataRef> profileData = adoptCF(CGColorSpaceCopyICCData(cgColorSpace.get()));
     55#else
     56        RetainPtr<CFDataRef> profileData = adoptCF(CGColorSpaceCopyICCProfile(cgColorSpace.get()));
     57#endif
     58        if (profileData) {
    5459            encoder.encodeEnum(Data);
    5560            IPC::encode(encoder, profileData.get());
Note: See TracChangeset for help on using the changeset viewer.