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

Unified Diff: ui/gfx/color_space.h

Issue 2795093002: color: Clean up dependencies to allow including in cc/paint (Closed)
Patch Set: Move to separate component Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« ui/gfx/BUILD.gn ('K') | « ui/gfx/BUILD.gn ('k') | ui/gfx/color_space.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index 3d469420ebcc9f3323cc11754afbc446a77b7773..643a69ccbe54694dad5b7a052188686f92b7bdd8 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -28,7 +28,7 @@ class ICCProfile;
// between any processes.
class GFX_EXPORT ColorSpace {
public:
- enum class PrimaryID : uint16_t {
+ enum class PrimaryID : uint8_t {
INVALID,
BT709,
BT470M,
@@ -51,7 +51,7 @@ class GFX_EXPORT ColorSpace {
LAST = ICC_BASED,
};
- enum class TransferID : uint16_t {
+ enum class TransferID : uint8_t {
INVALID,
BT709,
GAMMA22,
@@ -86,7 +86,7 @@ class GFX_EXPORT ColorSpace {
LAST = ICC_BASED,
};
- enum class MatrixID : int16_t {
+ enum class MatrixID : uint8_t {
INVALID,
RGB,
BT709,
@@ -101,7 +101,7 @@ class GFX_EXPORT ColorSpace {
LAST = YDZDX,
};
- enum class RangeID : int8_t {
+ enum class RangeID : uint8_t {
INVALID,
// Limited Rec. 709 color range with RGB values ranging from 16 to 235.
LIMITED,
@@ -119,6 +119,8 @@ class GFX_EXPORT ColorSpace {
MatrixID matrix,
RangeID full_range);
ColorSpace(const ColorSpace& other);
+ ColorSpace(ColorSpace&& other);
+ ColorSpace& operator=(const ColorSpace& other);
~ColorSpace();
// Create a color space with primary, transfer and matrix values from the
@@ -153,6 +155,7 @@ class GFX_EXPORT ColorSpace {
bool operator==(const ColorSpace& other) const;
bool operator!=(const ColorSpace& other) const;
bool operator<(const ColorSpace& other) const;
+ size_t GetHash() const;
std::string ToString() const;
// Returns true if the decoded values can be outside of the 0.0-1.0 range.
« ui/gfx/BUILD.gn ('K') | « ui/gfx/BUILD.gn ('k') | ui/gfx/color_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698