Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1095)

Unified Diff: ui/gfx/color_space.cc

Issue 2641143004: Add LINEAR_HDR so that the linear scRGB colorspace will be HDR (Closed)
Patch Set: windows compile fix Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/color_space.h ('k') | ui/gfx/color_space_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space.cc
diff --git a/ui/gfx/color_space.cc b/ui/gfx/color_space.cc
index 2bf317bcecb7ec8db177ad8da6c18507680c4e6a..077e92759050d2de9fd69bcbfea80799014a7fd5 100644
--- a/ui/gfx/color_space.cc
+++ b/ui/gfx/color_space.cc
@@ -88,7 +88,7 @@ ColorSpace ColorSpace::CreateSRGB() {
// static
ColorSpace ColorSpace::CreateSCRGBLinear() {
- return ColorSpace(PrimaryID::BT709, TransferID::LINEAR, MatrixID::RGB,
+ return ColorSpace(PrimaryID::BT709, TransferID::LINEAR_HDR, MatrixID::RGB,
RangeID::FULL);
}
@@ -129,7 +129,8 @@ bool ColorSpace::operator==(const ColorSpace& other) const {
bool ColorSpace::IsHDR() const {
return transfer_ == TransferID::SMPTEST2084 ||
- transfer_ == TransferID::ARIB_STD_B67;
+ transfer_ == TransferID::ARIB_STD_B67 ||
+ transfer_ == TransferID::LINEAR_HDR;
}
bool ColorSpace::operator!=(const ColorSpace& other) const {
« no previous file with comments | « ui/gfx/color_space.h ('k') | ui/gfx/color_space_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698