aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/skcms/skcms.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-05-01 13:09:53 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-01 17:42:35 +0000
commit0ab0f1c120050920140da7fe15fc2ccd81a8e01d (patch)
treede6e47839b9c025193ac7a421d547c2bc3e57956 /third_party/skcms/skcms.h
parente467d4e65639a719e953f6b62f91770a6411c0b9 (diff)
Convert skcms to only export functions (not data)
This simplifies shared library builds on Windows (no need to conditionally change declspec to dllimport). Once this lands, we can make the same change (plus update internal references): https://skia-review.googlesource.com/c/skcms/+/124982 Change-Id: I0d4fa9031258f77d370e6e6e018afaf543c29d85 Reviewed-on: https://skia-review.googlesource.com/124983 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'third_party/skcms/skcms.h')
-rw-r--r--third_party/skcms/skcms.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/skcms/skcms.h b/third_party/skcms/skcms.h
index 94dfe03892..2053fe6828 100644
--- a/third_party/skcms/skcms.h
+++ b/third_party/skcms/skcms.h
@@ -113,9 +113,9 @@ typedef struct skcms_ICCProfile {
} skcms_ICCProfile;
// The sRGB color profile is so commonly used that we offer a canonical skcms_ICCProfile for it.
-SKCMS_API extern const skcms_ICCProfile skcms_sRGB_profile;
+SKCMS_API const skcms_ICCProfile* skcms_sRGB_profile(void);
// Ditto for XYZD50, the most common profile connection space.
-SKCMS_API extern const skcms_ICCProfile skcms_XYZD50_profile;
+SKCMS_API const skcms_ICCProfile* skcms_XYZD50_profile(void);
// Practical equality test for two skcms_ICCProfiles.
// The implementation is subject to change, but it will always try to answer