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

Unified Diff: ui/gfx/color_space.cc

Issue 2755953005: color: Use SkColorSpaceXform instead of QCMS for LUTs (Closed)
Patch Set: Rebase Created 3 years, 9 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/DEPS ('k') | ui/gfx/color_transform.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 38f8bff962acc904559291d335f093b8da928ba0..7b5421d48bd5835077102e9a5e78022d3d4fa19e 100644
--- a/ui/gfx/color_space.cc
+++ b/ui/gfx/color_space.cc
@@ -407,11 +407,11 @@ sk_sp<SkColorSpace> ColorSpace::ToSkColorSpace() const {
// Use the named sRGB and linear transfer functions.
if (transfer_ == TransferID::IEC61966_2_1) {
- return SkColorSpace::MakeRGB(SkColorSpace::kLinear_RenderTargetGamma,
+ return SkColorSpace::MakeRGB(SkColorSpace::kSRGB_RenderTargetGamma,
to_xyz_d50);
}
if (transfer_ == TransferID::LINEAR || transfer_ == TransferID::LINEAR_HDR) {
- return SkColorSpace::MakeRGB(SkColorSpace::kSRGB_RenderTargetGamma,
+ return SkColorSpace::MakeRGB(SkColorSpace::kLinear_RenderTargetGamma,
to_xyz_d50);
}
« no previous file with comments | « ui/gfx/DEPS ('k') | ui/gfx/color_transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698