aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBrian Osman <brianosman@google.com>2019-01-24 12:18:17 -0500
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2019-01-24 17:45:19 +0000
commit5deadca8fe0bb22bdce1e31372dd8c11a28689f8 (patch)
treeb3ac11aa5c0debb1d3969b8505fa9c2d96fed535 /include
parent1c77987fc8ea197f940953083792a23d759fe60a (diff)
downloadplatform_external_skqp-5deadca8fe0bb22bdce1e31372dd8c11a28689f8.tar.gz
platform_external_skqp-5deadca8fe0bb22bdce1e31372dd8c11a28689f8.tar.bz2
platform_external_skqp-5deadca8fe0bb22bdce1e31372dd8c11a28689f8.zip
Remove nearly all use of SkColorSpaceTransferFn
Most interfaces had migrated to skcms_TransferFunction. Having both was awkward in several places, so this (almost) finishes the migration. Some clients are calling SkICC::WriteToICC, so that's left intact. After this CL, those clients can switch to using SkWriteICCProfile directly, and WriteToICC can be deleted. Bug: skia: Change-Id: I46ebaeb1f5b20bf0c620e8a620e73ee323a1de31 Reviewed-on: https://skia-review.googlesource.com/c/186541 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkICC.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/core/SkICC.h b/include/core/SkICC.h
index 89188894f8..ddc31a5738 100644
--- a/include/core/SkICC.h
+++ b/include/core/SkICC.h
@@ -12,9 +12,12 @@
#include "SkMatrix44.h"
#include "SkRefCnt.h"
+struct skcms_Matrix3x3;
+struct skcms_TransferFunction;
struct SkColorSpaceTransferFn;
-SK_API sk_sp<SkData> SkWriteICCProfile(const SkColorSpaceTransferFn&, const float toXYZD50[9]);
+SK_API sk_sp<SkData> SkWriteICCProfile(const skcms_TransferFunction&,
+ const skcms_Matrix3x3& toXYZD50);
namespace SkICC {
SK_API sk_sp<SkData> WriteToICC(const SkColorSpaceTransferFn&, const SkMatrix44&);