Changeset 206182 in webkit


Ignore:
Timestamp:
Sep 20, 2016 3:36:02 PM (8 years ago)
Author:
ap@apple.com
Message:

Use a hardcoded patch for sRGB color profile
https://bugs.webkit.org/show_bug.cgi?id=162320
rdar://problem/28387318

Reviewed by Simon Fraser.

This is a workaround for rdar://problem/28392768

  • DumpRenderTree/mac/LayoutTestHelper.m:

(installLayoutTestColorProfile):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r206180 r206182  
     12016-09-20  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Use a hardcoded patch for sRGB color profile
     4        https://bugs.webkit.org/show_bug.cgi?id=162320
     5        rdar://problem/28387318
     6
     7        Reviewed by Simon Fraser.
     8
     9        This is a workaround for rdar://problem/28392768
     10
     11        * DumpRenderTree/mac/LayoutTestHelper.m:
     12        (installLayoutTestColorProfile):
     13
    1142016-09-20  Ryan Haddad  <ryanhaddad@apple.com>
    215
  • trunk/Tools/DumpRenderTree/mac/LayoutTestHelper.m

    r201821 r206182  
    173173    saveDisplayColorProfiles(displays);
    174174
    175     ColorSyncProfileRef sRGBProfile = ColorSyncProfileCreateWithName(kColorSyncSRGBProfile);
    176     CFErrorRef error;
    177     CFURLRef profileURL = ColorSyncProfileGetURL(sRGBProfile, &error);
    178     if (!profileURL) {
    179         NSLog(@"Failed to get URL of Generic RGB color profile! Many pixel tests may fail as a result. Error: %@", error);
    180         return;
    181     }
     175    // Profile path needs to be hardcoded because of <rdar://problem/28392768>.
     176    NSURL *sRGBProfileURL = [NSURL fileURLWithPath:@"/System/Library/ColorSync/Profiles/sRGB Profile.icc"];
    182177   
    183178    for (NSString *displayUUIDString in displays)
    184         setDisplayColorProfile(displayUUIDString, (NSURL *)profileURL);
     179        setDisplayColorProfile(displayUUIDString, sRGBProfileURL);
    185180}
    186181
Note: See TracChangeset for help on using the changeset viewer.