| Index: ui/gfx/color_space.cc
|
| diff --git a/ui/gfx/color_space.cc b/ui/gfx/color_space.cc
|
| index c3a8975c51420b1c7c37c1c425c71da0ca277080..8bb9bddca8882614957505d47eceb70e18d15af9 100644
|
| --- a/ui/gfx/color_space.cc
|
| +++ b/ui/gfx/color_space.cc
|
| @@ -12,11 +12,9 @@
|
|
|
| namespace gfx {
|
|
|
| -ColorSpace::ColorSpace()
|
| - : primaries_(PrimaryID::UNSPECIFIED),
|
| - transfer_(TransferID::UNSPECIFIED),
|
| - matrix_(MatrixID::UNSPECIFIED),
|
| - range_(RangeID::LIMITED) {}
|
| +ColorSpace::ColorSpace() {
|
| + memset(custom_primary_matrix_, 0, sizeof(custom_primary_matrix_));
|
| +}
|
|
|
| ColorSpace::ColorSpace(PrimaryID primaries,
|
| TransferID transfer,
|
| @@ -26,6 +24,7 @@ ColorSpace::ColorSpace(PrimaryID primaries,
|
| transfer_(transfer),
|
| matrix_(matrix),
|
| range_(range) {
|
| + memset(custom_primary_matrix_, 0, sizeof(custom_primary_matrix_));
|
| // TODO: Set profile_id_
|
| }
|
|
|
|
|