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

Unified Diff: ui/gfx/color_space_win.cc

Issue 2791023002: FP16 mode gamma fix (Closed)
Patch Set: bugfix 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 | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space_win.cc
diff --git a/ui/gfx/color_space_win.cc b/ui/gfx/color_space_win.cc
index 75ab3234e2af2a379f9ff6291f518c62be556746..9741923789a29afd6f94930828f71c19e5fa27d2 100644
--- a/ui/gfx/color_space_win.cc
+++ b/ui/gfx/color_space_win.cc
@@ -151,7 +151,8 @@ DXGI_COLOR_SPACE_TYPE ColorSpaceWin::GetDXGIColorSpace(
return DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P2020;
}
} else {
- if (color_space.transfer_ == gfx::ColorSpace::TransferID::LINEAR) {
+ if (color_space.transfer_ == gfx::ColorSpace::TransferID::LINEAR ||
+ color_space.transfer_ == gfx::ColorSpace::TransferID::LINEAR_HDR) {
return DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709;
} else {
return DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709;
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698