| Index: ui/gfx/color_space.cc
|
| diff --git a/ui/gfx/color_space.cc b/ui/gfx/color_space.cc
|
| index 1b16047e519132b31c3b93094b77cb6cee33e80f..9599fe5d587ba376b64ecd8dce4338a28372016a 100644
|
| --- a/ui/gfx/color_space.cc
|
| +++ b/ui/gfx/color_space.cc
|
| @@ -64,4 +64,28 @@ bool ColorSpace::operator==(const ColorSpace& other) const {
|
| matrix_ == other.matrix_ && range_ == other.range_;
|
| }
|
|
|
| +bool ColorSpace::operator<(const ColorSpace& other) const {
|
| + if (primaries_ < other.primaries_)
|
| + return true;
|
| + if (primaries_ > other.primaries_)
|
| + return false;
|
| + if (transfer_ < other.transfer_)
|
| + return true;
|
| + if (transfer_ > other.transfer_)
|
| + return false;
|
| + if (matrix_ < other.matrix_)
|
| + return true;
|
| + if (matrix_ > other.matrix_)
|
| + return false;
|
| + if (range_ < other.range_)
|
| + return true;
|
| + if (range_ > other.range_)
|
| + return true;
|
| +
|
| + // TODO(hubbe): For "CUSTOM" primaries or tranfer functions, compare their
|
| + // coefficients here
|
| +
|
| + return false;
|
| +}
|
| +
|
| } // namespace gfx
|
|
|