Index: ui/gfx/color_space.h |
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h |
index 6e351899e16fe3f4523a17f571c6e873d5eb6e26..9b9b1c0203859dd13ae7cbd8503aa209e8c9fcb9 100644 |
--- a/ui/gfx/color_space.h |
+++ b/ui/gfx/color_space.h |
@@ -17,6 +17,10 @@ template <class P> |
struct ParamTraits; |
} // namespace IPC |
+template <typename T> |
+class sk_sp; |
+class SkColorSpace; |
+ |
namespace gfx { |
class ICCProfile; |
@@ -132,6 +136,9 @@ class GFX_EXPORT ColorSpace { |
bool operator!=(const ColorSpace& other) const; |
bool operator<(const ColorSpace& other) const; |
+ // Note that this may return nullptr. |
+ sk_sp<SkColorSpace> ToSkColorSpace() const; |
+ |
private: |
PrimaryID primaries_ = PrimaryID::UNSPECIFIED; |
TransferID transfer_ = TransferID::UNSPECIFIED; |