OSDN Git Service

Remove unnecessary saturation operation
authorRomain Guy <romainguy@google.com>
Tue, 15 Nov 2016 01:33:24 +0000 (17:33 -0800)
committerRomain Guy <romainguy@google.com>
Tue, 15 Nov 2016 01:33:24 +0000 (17:33 -0800)
Test: colorspace_test
Bug: 29940137
Change-Id: Ie5821b4a753e28c22adde3b98cccf1115763d817

libs/ui/ColorSpace.cpp

index 081aca9..4ea3b96 100644 (file)
@@ -217,8 +217,8 @@ const ColorSpace ColorSpace::DCIP3() {
         "SMPTE RP 431-2-2007 DCI (P3)",
         {{float2{0.680f, 0.320f}, {0.265f, 0.690f}, {0.150f, 0.060f}}},
         {0.3127f, 0.3290f},
-        std::bind(saturate<float>, std::bind(powf, _1, 1.0f / 2.6f)),
-        std::bind(saturate<float>, std::bind(powf, _1, 2.6f))
+        std::bind(powf, _1, 1.0f / 2.6f),
+        std::bind(powf, _1, 2.6f)
     };
 }