aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkSRGB.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkSRGB.h')
-rw-r--r--src/core/SkSRGB.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkSRGB.h b/src/core/SkSRGB.h
index e0052b99ea..de078a5528 100644
--- a/src/core/SkSRGB.h
+++ b/src/core/SkSRGB.h
@@ -13,12 +13,14 @@
/** Components for building our canonical sRGB -> linear and linear -> sRGB transformations.
*
* Current best practices:
+ * - for sRGB -> linear, lookup R,G,B in sk_linear_from_srgb;
* - for linear -> sRGB, call sk_linear_to_srgb() for R,G,B;
* - the alpha channel is linear in both formats, needing at most *(1/255.0f) or *255.0f.
*
* sk_linear_to_srgb() will run a little faster than usual when compiled with SSE4.1+.
*/
+extern const float sk_linear_from_srgb[256];
extern const uint16_t sk_linear12_from_srgb[256];
extern const uint8_t sk_linear12_to_srgb[4096];