commit | 3601f280dc400cb75167393b0a2b6670b5f25ea4 | [log] [tgz] |
---|---|---|
author | reed <reed@google.com> | Fri Feb 05 11:18:39 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Fri Feb 05 11:18:39 2016 -0800 |
tree | a8aa9ff7658b049ca0aec0ea1729921122fe22d0 | |
parent | 06604b95622359640a1c2028b885646deda28d52 [diff] [blame] |
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
diff --git a/include/core/SkColor.h b/include/core/SkColor.h index 90453f5..b1571c7 100644 --- a/include/core/SkColor.h +++ b/include/core/SkColor.h
@@ -180,6 +180,11 @@ 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