diff options
author | 2018-07-12 11:38:10 -0400 | |
---|---|---|
committer | 2018-07-12 19:19:28 +0000 | |
commit | 9e229233a67b36a508d3c753a5b93a022369c5f7 (patch) | |
tree | 25f86e467bc48d5dff3276427f3f1772e8f89352 /src/core/SkSRGB.h | |
parent | d46f0091afdc2563ec50319c4f93d110e0868fb9 (diff) |
update SkColor4f::FromColor() to preserve transfer function
This kills off some sRGB tables,
and lots of call sites can now use SkColor4f::FromColor().
It doesn't seem important to keep this test.
Change-Id: Ia79ec8ace45e80bbc7a1e33f560f59289e61b2fb
Reviewed-on: https://skia-review.googlesource.com/141046
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/core/SkSRGB.h')
-rw-r--r-- | src/core/SkSRGB.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/SkSRGB.h b/src/core/SkSRGB.h index de078a5528..e0052b99ea 100644 --- a/src/core/SkSRGB.h +++ b/src/core/SkSRGB.h @@ -13,14 +13,12 @@ /** 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]; |