Index: include/core/SkColor.h |
diff --git a/include/core/SkColor.h b/include/core/SkColor.h |
index 90453f548cd02f8f5568dcedba033c5ab0671be5..b1571c700922b3d358607525482c962f66587e9a 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 |