diff options
author | reed <reed@google.com> | 2016-02-05 11:18:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-05 11:18:39 -0800 |
commit | 3601f280dc400cb75167393b0a2b6670b5f25ea4 (patch) | |
tree | a8aa9ff7658b049ca0aec0ea1729921122fe22d0 /include/core/SkColor.h | |
parent | 06604b95622359640a1c2028b885646deda28d52 (diff) |
add kRGBA_F16_SkColorType
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1666343002
Review URL: https://codereview.chromium.org/1666343002
Diffstat (limited to 'include/core/SkColor.h')
-rw-r--r-- | include/core/SkColor.h | 5 |
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 |