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

Unified Diff: ui/gfx/color_space.h

Issue 2349923002: Add getters for gfx::ColorSpace components (Closed)
Patch Set: Added tests for getters Created 4 years, 3 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
« no previous file with comments | « no previous file | ui/gfx/color_transform_unittest.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 6e351899e16fe3f4523a17f571c6e873d5eb6e26..bfd06e9565bd3ddf6064ff26f90151baa17609c5 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -132,6 +132,11 @@ class GFX_EXPORT ColorSpace {
bool operator!=(const ColorSpace& other) const;
bool operator<(const ColorSpace& other) const;
+ PrimaryID primaries() const { return primaries_; }
+ TransferID transfer_function() const { return transfer_; }
+ MatrixID matrix() const { return matrix_; }
+ RangeID range() const { return range_; }
+
private:
PrimaryID primaries_ = PrimaryID::UNSPECIFIED;
TransferID transfer_ = TransferID::UNSPECIFIED;
« no previous file with comments | « no previous file | ui/gfx/color_transform_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698