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

Unified Diff: ui/gfx/color_space.h

Issue 2691213007: color: Don't use QCMS for transforms unless necessary (Closed)
Patch Set: color: Don't use QCMS for transforms unless necessary Created 3 years, 10 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 6e424f762a10ae8d4ce3e84e604178f4a59d3e28..db5dd163b8834837262adddf8c588759148e3f42 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -144,6 +144,11 @@ class GFX_EXPORT ColorSpace {
// range, and unspecified spaces.
sk_sp<SkColorSpace> ToSkColorSpace() const;
+ // Populate |icc_profile| with an ICC profile that represents this color
+ // space. Returns false if this space is not representable. This ICC profile
+ // will be constructed ignoring the range adjust and transfer matrices.
+ bool GetICCProfile(ICCProfile* icc_profile) const;
+
void GetPrimaryMatrix(SkMatrix44* to_XYZD50) const;
bool GetTransferFunction(SkColorSpaceTransferFn* fn) const;
bool GetInverseTransferFunction(SkColorSpaceTransferFn* fn) const;

Powered by Google App Engine
This is Rietveld 408576698