diff options
author | skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com> | 2018-05-17 17:58:48 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-17 18:40:14 +0000 |
commit | 86168a1972c23221a3900f5b8c1eab0480109fc4 (patch) | |
tree | a36b22f3f700df6ad68eb0c9626d8d7df394d050 /third_party/skcms/skcms.h | |
parent | 29ede9b0c31c611bbd56799676c3b0b35bc20942 (diff) |
Roll skia/third_party/skcms 06d773b..3f444c5 (1 commits)
https://skia.googlesource.com/skcms.git/+log/06d773b..3f444c5
2018-05-17 mtklein@chromium.org rm skcms_PolyTF and skcms_OptimizeForSpeed()
The AutoRoll server is located here: https://skcms-skia-roll.skia.org
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
TBR=herb@google.com
Change-Id: Ibdab92aa3d3cd9cc478623051ad1abb915765a7e
Reviewed-on: https://skia-review.googlesource.com/128981
Reviewed-by: skcms-skia-autoroll <skcms-skia-autoroll@skia-buildbots.google.com.iam.gserviceaccount.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'third_party/skcms/skcms.h')
-rw-r--r-- | third_party/skcms/skcms.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/third_party/skcms/skcms.h b/third_party/skcms/skcms.h index ffc8901019..ece944c56b 100644 --- a/third_party/skcms/skcms.h +++ b/third_party/skcms/skcms.h @@ -43,11 +43,6 @@ typedef struct skcms_TransferFunction { float g, a,b,c,d,e,f; } skcms_TransferFunction; -// A transfer function that's cheaper to evaluate than skcms_TransferFunction. -typedef struct skcms_PolyTF { - float A,B,C,D; -} skcms_PolyTF; - // Unified representation of 'curv' or 'para' tag data, or a 1D table from 'mft1' or 'mft2' typedef union skcms_Curve { struct { @@ -113,10 +108,6 @@ typedef struct skcms_ICCProfile { // and has_A2B to true. bool has_A2B; skcms_A2B A2B; - - // If the profile has_trc, we may be able to approximate those curves with skcms_PolyTF. - bool has_poly_tf[3]; - skcms_PolyTF poly_tf[3]; } skcms_ICCProfile; // The sRGB color profile is so commonly used that we offer a canonical skcms_ICCProfile for it. @@ -135,9 +126,8 @@ SKCMS_API bool skcms_ApproximatelyEqualProfiles(const skcms_ICCProfile* A, // will be used. SKCMS_API bool skcms_Parse(const void*, size_t, skcms_ICCProfile*); -// skcms_Parse() creates a profile that directs skcms_Transform() to favor accuracy. -// If you want to trade a little accuracy for a big speedup, call skcms_OptimizeForSpeed(). -SKCMS_API void skcms_OptimizeForSpeed(skcms_ICCProfile*); +// No-op, to be removed. +static inline void skcms_OptimizeForSpeed(skcms_ICCProfile* p) { (void)p; } SKCMS_API bool skcms_ApproximateCurve(const skcms_Curve* curve, skcms_TransferFunction* approx, @@ -258,7 +248,6 @@ static inline void skcms_SetTransferFunction(skcms_ICCProfile* p, for (int i = 0; i < 3; ++i) { p->trc[i].table_entries = 0; p->trc[i].parametric = *tf; - p->has_poly_tf[i] = false; } } |