OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf2ca4
)
Remove unnecessary saturation operation
author
Romain Guy
<romainguy@google.com>
Tue, 15 Nov 2016 01:33:24 +0000
(17:33 -0800)
committer
Romain 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
patch
|
blob
|
history
diff --git
a/libs/ui/ColorSpace.cpp
b/libs/ui/ColorSpace.cpp
index
081aca9
..
4ea3b96
100644
(file)
--- a/
libs/ui/ColorSpace.cpp
+++ b/
libs/ui/ColorSpace.cpp
@@
-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
)
};
}