Chromium Code Reviews| Index: ui/gfx/color_space.h |
| diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h |
| index c9e9038619678dba0d9eee20f06ef66a75a8e7b3..b90278d690b1faef1bcd925104f9c490d168ac1e 100644 |
| --- a/ui/gfx/color_space.h |
| +++ b/ui/gfx/color_space.h |
| @@ -150,6 +150,9 @@ class GFX_EXPORT ColorSpace { |
| static MatrixID MatrixIDFromInt(int matrix_id); |
| static ColorSpace CreateSRGB(); |
| + // scRGB is like RGB, but linear and values outside of 0-1 are allowed. |
| + // scRGB is normally used with fp16 textures. |
| + static ColorSpace CreateSCRGB(); |
|
ccameron
2017/01/19 21:18:24
Could you rename this to to SCRGBLinear?
hubbe
2017/01/19 21:35:47
Done.
|
| static ColorSpace CreateXYZD50(); |
| // TODO: Remove these, and replace with more generic constructors. |
| @@ -161,6 +164,8 @@ class GFX_EXPORT ColorSpace { |
| bool operator!=(const ColorSpace& other) const; |
| bool operator<(const ColorSpace& other) const; |
| + bool IsHDR() const; |
| + |
| // Note that this may return nullptr. |
| const sk_sp<SkColorSpace>& ToSkColorSpace() const { return sk_color_space_; } |
| static ColorSpace FromSkColorSpace(const sk_sp<SkColorSpace>& sk_color_space); |