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

Unified Diff: ui/gfx/color_space.h

Issue 2351823002: cc: Add conversion between gfx::ColorSpace and SkColorSpace (Closed)
Patch Set: Add warnings 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
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;
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | ui/gfx/color_space.cc » ('j') | ui/gfx/color_space.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698