Bug 1494222: set XYZ PCS on internal RGB profiles. r=nical
authorThomas P. <pdknsk+mozilla@gmail.com>
Wed, 26 Sep 2018 08:38:24 +0000
changeset 495643 c1354102f8a8677614fbe9db2f654130ffe67616
parent 495642 4869ae749cedcfc99427b4cf58d8a3ab92769e99
child 495644 25183982ae1bae54b2ffeacbcf178bea3ec9323d
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1494222
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1494222: set XYZ PCS on internal RGB profiles. r=nical
gfx/qcms/iccread.c
--- a/gfx/qcms/iccread.c
+++ b/gfx/qcms/iccread.c
@@ -924,16 +924,17 @@ qcms_profile* qcms_profile_create_rgb_wi
 
 	if (!profile->redTRC || !profile->blueTRC || !profile->greenTRC) {
 		qcms_profile_release(profile);
 		return NO_MEM_PROFILE;
 	}
 	profile->class = DISPLAY_DEVICE_PROFILE;
 	profile->rendering_intent = QCMS_INTENT_PERCEPTUAL;
 	profile->color_space = RGB_SIGNATURE;
+        profile->pcs = XYZ_SIGNATURE;
 	return profile;
 }
 
 qcms_profile* qcms_profile_create_rgb_with_table(
 		qcms_CIE_xyY white_point,
 		qcms_CIE_xyYTRIPLE primaries,
 		uint16_t *table, int num_entries)
 {
@@ -953,16 +954,17 @@ qcms_profile* qcms_profile_create_rgb_wi
 
 	if (!profile->redTRC || !profile->blueTRC || !profile->greenTRC) {
 		qcms_profile_release(profile);
 		return NO_MEM_PROFILE;
 	}
 	profile->class = DISPLAY_DEVICE_PROFILE;
 	profile->rendering_intent = QCMS_INTENT_PERCEPTUAL;
 	profile->color_space = RGB_SIGNATURE;
+        profile->pcs = XYZ_SIGNATURE;
 	return profile;
 }
 
 /* from lcms: cmsWhitePointFromTemp */
 /* tempK must be >= 4000. and <= 25000.
  * Invalid values of tempK will return
  * (x,y,Y) = (-1.0, -1.0, -1.0)
  * similar to argyll: icx_DTEMP2XYZ() */