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

Unified Diff: Source/platform/graphics/ColorSpace.h

Issue 134733016: Add support for converting Colors to linear RGB; Fix relevant filters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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: Source/platform/graphics/ColorSpace.h
diff --git a/Source/platform/graphics/ColorSpace.h b/Source/platform/graphics/ColorSpace.h
index 06918f7ff1f9217d43aca2426ab69fdd4597a244..7a895e10e0f3739bb0875fa5c182dcc74f18900e 100644
--- a/Source/platform/graphics/ColorSpace.h
+++ b/Source/platform/graphics/ColorSpace.h
@@ -27,6 +27,7 @@
#define ColorSpace_h
#include "platform/PlatformExport.h"
+#include "wtf/Vector.h"
namespace WebCore {
@@ -36,6 +37,15 @@ enum ColorSpace {
ColorSpaceLinearRGB
};
+// Get a reference to a 8-bit lookup table that will convert color components
+// in the device RGB space to linear RGB.
+const Vector<uint8_t>& getLinearRgbLUT();
f(malita) 2014/01/22 15:09:32 Now that these have external visibility, they shou
+
+// Get a reference to a 8-bit lookup table that will convert color components
+// in the linear RGB space to device RGB (see above). I.e., the inverse of the
+// above. (Note however that a round-trip is not lossless.)
+const Vector<uint8_t>& getDeviceRgbLUT();
+
} // namespace WebCore
#endif // ColorSpace_h

Powered by Google App Engine
This is Rietveld 408576698