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

Side by Side Diff: ui/gfx/color_space.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.h ('k') | ui/gfx/color_space_win.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.h" 5 #include "ui/gfx/color_space.h"
6 6
7 #include <map> 7 #include <map>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 primaries.fRX = 0.63002f; 448 primaries.fRX = 0.63002f;
449 primaries.fRY = 0.34000f; 449 primaries.fRY = 0.34000f;
450 primaries.fGX = 0.29505f; 450 primaries.fGX = 0.29505f;
451 primaries.fGY = 0.60498f; 451 primaries.fGY = 0.60498f;
452 primaries.fBX = 0.15501f; 452 primaries.fBX = 0.15501f;
453 primaries.fBY = 0.07701f; 453 primaries.fBY = 0.07701f;
454 primaries.fWX = 0.3127f; 454 primaries.fWX = 0.3127f;
455 primaries.fWY = 0.3290f; 455 primaries.fWY = 0.3290f;
456 break; 456 break;
457 457
458 case ColorSpace::PrimaryID::WIDE_GAMUT_COLOR_SPIN:
459 primaries.fRX = 0.01f;
460 primaries.fRY = 0.01f;
461 primaries.fGX = 0.98f;
462 primaries.fGY = 0.01f;
463 primaries.fBX = 0.01f;
464 primaries.fBY = 0.98f;
465 primaries.fWX = 0.3127f;
466 primaries.fWY = 0.3290f;
467 break;
468
458 case ColorSpace::PrimaryID::FILM: 469 case ColorSpace::PrimaryID::FILM:
459 primaries.fRX = 0.681f; 470 primaries.fRX = 0.681f;
460 primaries.fRY = 0.319f; 471 primaries.fRY = 0.319f;
461 primaries.fGX = 0.243f; 472 primaries.fGX = 0.243f;
462 primaries.fGY = 0.692f; 473 primaries.fGY = 0.692f;
463 primaries.fBX = 0.145f; 474 primaries.fBX = 0.145f;
464 primaries.fBY = 0.049f; 475 primaries.fBY = 0.049f;
465 primaries.fWX = 0.310f; 476 primaries.fWX = 0.310f;
466 primaries.fWY = 0.136f; 477 primaries.fWY = 0.136f;
467 break; 478 break;
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 matrix->postTranslate(-16.0f/219.0f, -15.5f/224.0f, -15.5f/224.0f); 758 matrix->postTranslate(-16.0f/219.0f, -15.5f/224.0f, -15.5f/224.0f);
748 break; 759 break;
749 } 760 }
750 } 761 }
751 762
752 std::ostream& operator<<(std::ostream& out, const ColorSpace& color_space) { 763 std::ostream& operator<<(std::ostream& out, const ColorSpace& color_space) {
753 return out << color_space.ToString(); 764 return out << color_space.ToString();
754 } 765 }
755 766
756 } // namespace gfx 767 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/color_space.h ('k') | ui/gfx/color_space_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698