Bug 1684599 - Make iccv4 support default value a feature. r=aosmond
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Thu, 31 Dec 2020 23:06:07 +0000
changeset 561812 d460abf3df12dbbcc49a9dec7c0287049b4c42b2
parent 561811 ba1c6d881ee94272aeb4aece68ce88f5a10517a2
child 561813 cdd65df84242fa01e9b2c690fb9078d7fba46cb6
push id38069
push userbtara@mozilla.com
push dateFri, 01 Jan 2021 21:05:16 +0000
treeherdermozilla-central@cdd65df84242 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaosmond
bugs1684599
milestone86.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 1684599 - Make iccv4 support default value a feature. r=aosmond Differential Revision: https://phabricator.services.mozilla.com/D100571
gfx/qcms/Cargo.toml
gfx/qcms/src/iccread.rs
--- a/gfx/qcms/Cargo.toml
+++ b/gfx/qcms/Cargo.toml
@@ -8,11 +8,12 @@ description = "lightweight color managem
 documentation = "https://docs.rs/qcms"
 license = "MIT"
 keywords = ["color"]
 categories = ["graphics"]
 
 [features]
 default = ["c_bindings"]
 c_bindings = ["libc"]
+iccv4-enabled = []
 
 [dependencies]
 libc = {version = "0.2", optional = true }
--- a/gfx/qcms/src/iccread.rs
+++ b/gfx/qcms/src/iccread.rs
@@ -24,17 +24,17 @@
 use std::{
     sync::atomic::{AtomicBool, Ordering},
     sync::Arc,
 };
 
 use crate::transform::{precache_output, set_rgb_colorants};
 use crate::{matrix::Matrix, s15Fixed16Number, s15Fixed16Number_to_float, Intent, Intent::*};
 
-pub static SUPPORTS_ICCV4: AtomicBool = AtomicBool::new(false);
+pub static SUPPORTS_ICCV4: AtomicBool = AtomicBool::new(cfg!(feature = "iccv4-enabled"));
 
 pub type icColorSpaceSignature = u32;
 pub const icMaxEnumData: icColorSpaceSignature = 4294967295;
 pub const icSig15colorData: icColorSpaceSignature = 1178815570;
 pub const icSig14colorData: icColorSpaceSignature = 1162038354;
 pub const icSig13colorData: icColorSpaceSignature = 1145261138;
 pub const icSig12colorData: icColorSpaceSignature = 1128483922;
 pub const icSig11colorData: icColorSpaceSignature = 1111706706;