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

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

Issue 2660393002: Use gfx::ColorSpace instead of SkColorSpace in Blink (Closed)
Patch Set: Rebase (again) Created 3 years, 10 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.h » ('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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 case gfx::ColorSpace::PrimaryID::RESERVED0: 76 case gfx::ColorSpace::PrimaryID::RESERVED0:
77 case gfx::ColorSpace::PrimaryID::UNSPECIFIED: 77 case gfx::ColorSpace::PrimaryID::UNSPECIFIED:
78 case gfx::ColorSpace::PrimaryID::RESERVED: 78 case gfx::ColorSpace::PrimaryID::RESERVED:
79 case gfx::ColorSpace::PrimaryID::FILM: 79 case gfx::ColorSpace::PrimaryID::FILM:
80 case gfx::ColorSpace::PrimaryID::BT2020: 80 case gfx::ColorSpace::PrimaryID::BT2020:
81 case gfx::ColorSpace::PrimaryID::SMPTEST428_1: 81 case gfx::ColorSpace::PrimaryID::SMPTEST428_1:
82 case gfx::ColorSpace::PrimaryID::SMPTEST431_2: 82 case gfx::ColorSpace::PrimaryID::SMPTEST431_2:
83 case gfx::ColorSpace::PrimaryID::SMPTEST432_1: 83 case gfx::ColorSpace::PrimaryID::SMPTEST432_1:
84 case gfx::ColorSpace::PrimaryID::UNKNOWN: 84 case gfx::ColorSpace::PrimaryID::UNKNOWN:
85 case gfx::ColorSpace::PrimaryID::XYZ_D50: 85 case gfx::ColorSpace::PrimaryID::XYZ_D50:
86 case gfx::ColorSpace::PrimaryID::ADOBE_RGB:
86 case gfx::ColorSpace::PrimaryID::CUSTOM: 87 case gfx::ColorSpace::PrimaryID::CUSTOM:
87 // Not handled 88 // Not handled
88 break; 89 break;
89 } 90 }
90 91
91 switch (color_space.transfer_) { 92 switch (color_space.transfer_) {
92 case gfx::ColorSpace::TransferID::BT709: 93 case gfx::ColorSpace::TransferID::BT709:
93 case gfx::ColorSpace::TransferID::SMPTE170M: 94 case gfx::ColorSpace::TransferID::SMPTE170M:
94 format.VideoTransferFunction = DXVA2_VideoTransFunc_709; 95 format.VideoTransferFunction = DXVA2_VideoTransFunc_709;
95 break; 96 break;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 case gfx::ColorSpace::TransferID::SMPTEST2084_NON_HDR: 128 case gfx::ColorSpace::TransferID::SMPTEST2084_NON_HDR:
128 case gfx::ColorSpace::TransferID::CUSTOM: 129 case gfx::ColorSpace::TransferID::CUSTOM:
129 // Not handled 130 // Not handled
130 break; 131 break;
131 } 132 }
132 133
133 return format; 134 return format;
134 } 135 }
135 136
136 } // namespace gfx 137 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/icc_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698