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

Side by Side Diff: ui/gfx/color_space_win.cc

Issue 2912903003: color: Add color spin primaries for layout tests (Closed)
Patch Set: Rebase Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/icc_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/color_space_win.h" 5 #include "ui/gfx/color_space_win.h"
6 6
7 namespace gfx { 7 namespace gfx {
8 8
9 DXVA2_ExtendedFormat ColorSpaceWin::GetExtendedFormat( 9 DXVA2_ExtendedFormat ColorSpaceWin::GetExtendedFormat(
10 const ColorSpace& color_space) { 10 const ColorSpace& color_space) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 break; 72 break;
73 73
74 case gfx::ColorSpace::PrimaryID::FILM: 74 case gfx::ColorSpace::PrimaryID::FILM:
75 case gfx::ColorSpace::PrimaryID::BT2020: 75 case gfx::ColorSpace::PrimaryID::BT2020:
76 case gfx::ColorSpace::PrimaryID::SMPTEST428_1: 76 case gfx::ColorSpace::PrimaryID::SMPTEST428_1:
77 case gfx::ColorSpace::PrimaryID::SMPTEST431_2: 77 case gfx::ColorSpace::PrimaryID::SMPTEST431_2:
78 case gfx::ColorSpace::PrimaryID::SMPTEST432_1: 78 case gfx::ColorSpace::PrimaryID::SMPTEST432_1:
79 case gfx::ColorSpace::PrimaryID::XYZ_D50: 79 case gfx::ColorSpace::PrimaryID::XYZ_D50:
80 case gfx::ColorSpace::PrimaryID::ADOBE_RGB: 80 case gfx::ColorSpace::PrimaryID::ADOBE_RGB:
81 case gfx::ColorSpace::PrimaryID::APPLE_GENERIC_RGB: 81 case gfx::ColorSpace::PrimaryID::APPLE_GENERIC_RGB:
82 case gfx::ColorSpace::PrimaryID::WIDE_GAMUT_COLOR_SPIN:
82 case gfx::ColorSpace::PrimaryID::ICC_BASED: 83 case gfx::ColorSpace::PrimaryID::ICC_BASED:
83 case gfx::ColorSpace::PrimaryID::CUSTOM: 84 case gfx::ColorSpace::PrimaryID::CUSTOM:
84 case gfx::ColorSpace::PrimaryID::INVALID: 85 case gfx::ColorSpace::PrimaryID::INVALID:
85 // Not handled 86 // Not handled
86 break; 87 break;
87 } 88 }
88 89
89 switch (color_space.transfer_) { 90 switch (color_space.transfer_) {
90 case gfx::ColorSpace::TransferID::BT709: 91 case gfx::ColorSpace::TransferID::BT709:
91 case gfx::ColorSpace::TransferID::SMPTE170M: 92 case gfx::ColorSpace::TransferID::SMPTE170M:
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 case gfx::ColorSpace::MatrixID::BT2020_CL: 232 case gfx::ColorSpace::MatrixID::BT2020_CL:
232 case gfx::ColorSpace::MatrixID::YDZDX: 233 case gfx::ColorSpace::MatrixID::YDZDX:
233 case gfx::ColorSpace::MatrixID::INVALID: 234 case gfx::ColorSpace::MatrixID::INVALID:
234 // Not handled 235 // Not handled
235 break; 236 break;
236 } 237 }
237 return ret; 238 return ret;
238 } 239 }
239 240
240 } // namespace gfx 241 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/icc_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698