Changeset 206182 in webkit
- Timestamp:
- Sep 20, 2016 3:36:02 PM (8 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r206180 r206182 1 2016-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 1 14 2016-09-20 Ryan Haddad <ryanhaddad@apple.com> 2 15 -
trunk/Tools/DumpRenderTree/mac/LayoutTestHelper.m
r201821 r206182 173 173 saveDisplayColorProfiles(displays); 174 174 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"]; 182 177 183 178 for (NSString *displayUUIDString in displays) 184 setDisplayColorProfile(displayUUIDString, (NSURL *)profileURL);179 setDisplayColorProfile(displayUUIDString, sRGBProfileURL); 185 180 } 186 181
Note: See TracChangeset
for help on using the changeset viewer.