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

Unified Diff: ui/gfx/color_transform.cc

Issue 2333663003: Add color metadata info to VideoDecoderConfig. (Closed)
Patch Set: Remove resolution-based init for color_space_info_ Created 4 years, 3 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
Index: ui/gfx/color_transform.cc
diff --git a/ui/gfx/color_transform.cc b/ui/gfx/color_transform.cc
index 6db577ab5c64da8deb16771f32977b3b76aea95a..b0e37cd8fed79d85601fde624c61f81827fc8171 100644
--- a/ui/gfx/color_transform.cc
+++ b/ui/gfx/color_transform.cc
@@ -521,8 +521,10 @@ Transform GetRangeAdjustMatrix(ColorSpace::RangeID range,
ColorSpace::MatrixID matrix) {
switch (range) {
case ColorSpace::RangeID::FULL:
+ case ColorSpace::RangeID::UNSPECIFIED:
return Transform();
+ case ColorSpace::RangeID::DERIVED:
case ColorSpace::RangeID::LIMITED:
break;
}

Powered by Google App Engine
This is Rietveld 408576698