Remove SkPM4f::toF16

Android use of this API has been removed

Bug: skia:
Change-Id: I7f05704472a6024c9009123a169a8ece37761447
Reviewed-on: https://skia-review.googlesource.com/156361
Auto-Submit: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
This commit is contained in:
Brian Osman 2018-09-23 22:29:37 +00:00 committed by Skia Commit-Bot
parent 937348d4d4
commit bdb32d1799
2 changed files with 0 additions and 15 deletions

View File

@ -121,18 +121,6 @@ SkColor4f SkPM4f::unpremul() const {
}
}
void SkPM4f::toF16(uint16_t half[4]) const {
for (int i = 0; i < 4; ++i) {
half[i] = SkFloatToHalf(fVec[i]);
}
}
uint64_t SkPM4f::toF16() const {
uint64_t value;
this->toF16(reinterpret_cast<uint16_t*>(&value));
return value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////
template <>

View File

@ -68,9 +68,6 @@ struct SK_API SkPM4f {
Sk4f to4f() const { return Sk4f::Load(fVec); }
Sk4f to4f_pmorder() const { return swizzle_rb_if_bgra(this->to4f()); }
void toF16(uint16_t[4]) const;
uint64_t toF16() const; // 4 float16 values packed into uint64_t
SkColor4f unpremul() const;
};