Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 | 13 |
| 14 ColorSpace::ColorSpace() = default; | 14 ColorSpace::ColorSpace() = default; |
| 15 | 15 |
| 16 // static | |
| 17 ColorSpace ColorSpace::CreateSRGB() { | |
| 18 return gfx::ColorSpace(); | |
|
hubbe
2016/07/21 22:12:34
Add TODOs?
| |
| 19 } | |
| 20 | |
| 21 // static | |
| 22 ColorSpace ColorSpace::CreateJpeg() { | |
| 23 return gfx::ColorSpace(); | |
| 24 } | |
| 25 | |
| 26 // static | |
| 27 ColorSpace ColorSpace::CreateREC601() { | |
| 28 return gfx::ColorSpace(); | |
| 29 } | |
| 30 | |
| 31 // static | |
| 32 ColorSpace ColorSpace::CreateREC709() { | |
| 33 return gfx::ColorSpace(); | |
| 34 } | |
| 35 | |
| 16 bool ColorSpace::operator==(const ColorSpace& other) const { | 36 bool ColorSpace::operator==(const ColorSpace& other) const { |
| 17 return valid_ == other.valid_ && | 37 return valid_ == other.valid_ && |
| 18 transfer_function_ == other.transfer_function_ && | 38 transfer_function_ == other.transfer_function_ && |
| 19 !memcmp(xyz_d50_matrix_, other.xyz_d50_matrix_, | 39 !memcmp(xyz_d50_matrix_, other.xyz_d50_matrix_, |
| 20 sizeof(xyz_d50_matrix_)); | 40 sizeof(xyz_d50_matrix_)); |
| 21 } | 41 } |
| 22 | 42 |
| 23 } // namespace gfx | 43 } // namespace gfx |
| OLD | NEW |