aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkColor.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-02-05 11:18:39 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-05 11:18:39 -0800
commit3601f280dc400cb75167393b0a2b6670b5f25ea4 (patch)
treea8aa9ff7658b049ca0aec0ea1729921122fe22d0 /include/core/SkColor.h
parent06604b95622359640a1c2028b885646deda28d52 (diff)
add kRGBA_F16_SkColorType
Diffstat (limited to 'include/core/SkColor.h')
-rw-r--r--include/core/SkColor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkColor.h b/include/core/SkColor.h
index 90453f548c..b1571c7009 100644
--- a/include/core/SkColor.h
+++ b/include/core/SkColor.h
@@ -180,6 +180,11 @@ struct SkPM4f {
static SkPM4f FromPMColor(SkPMColor);
+ // half-float routines
+ void toF16(uint16_t[4]) const;
+ uint64_t toF16() const; // 4 float16 values packed into uint64_t
+ static SkPM4f FromF16(const uint16_t[4]);
+
#ifdef SK_DEBUG
void assertIsUnit() const;
#else