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

Unified Diff: ui/gfx/color_space.h

Issue 2742613002: color: Always use parametric color spaces for raster (Closed)
Patch Set: Incorporate review feedback 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
« no previous file with comments | « ui/compositor/compositor.cc ('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 f472af359fdf011060b221774dd763a8b6beed50..8a05ba0e2bb77df195a89fa22f549b3d29d1dd33 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -42,8 +42,13 @@ class GFX_EXPORT ColorSpace {
SMPTEST432_1,
XYZ_D50,
ADOBE_RGB,
+ // Primaries defined by the primary matrix |custom_primary_matrix_|.
CUSTOM,
- LAST = CUSTOM
+ // For color spaces defined by an ICC profile which cannot be represented
+ // parametrically. Any ColorTransform using this color space will use the
+ // ICC profile directly to compute a transform LUT.
+ ICC_BASED,
+ LAST = ICC_BASED,
};
enum class TransferID : uint16_t {
@@ -74,8 +79,11 @@ class GFX_EXPORT ColorSpace {
IEC61966_2_1_HDR,
// The same as LINEAR but is defined for all real values.
LINEAR_HDR,
+ // A parametric transfer function defined by |custom_transfer_params_|.
CUSTOM,
- LAST = CUSTOM,
+ // See PrimaryID::ICC_BASED.
+ ICC_BASED,
+ LAST = ICC_BASED,
};
enum class MatrixID : int16_t {
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/gfx/color_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698