diff options
author | brianosman <brianosman@google.com> | 2016-09-07 11:30:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-07 11:30:47 -0700 |
commit | c544e7043c9727fb5697120e241b6860816ef749 (patch) | |
tree | 251c41dd4f339c9df9c42ce18f6e04f6dde54d3f | |
parent | ff2a6c8a70d5f7e3be99ef41c75412878785edcb (diff) |
Add minimal support for readPixels in raster F16
Still doesn't support doing premul <-> unpremul conversions, but handles
the simple cases (which would previously always fail). Fixes the new gamut
gm (partially) in f16 config.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2321673002
Review-Url: https://codereview.chromium.org/2321673002
-rw-r--r-- | src/core/SkConfig8888.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkConfig8888.cpp b/src/core/SkConfig8888.cpp index 5bac16a272..31def9a92d 100644 --- a/src/core/SkConfig8888.cpp +++ b/src/core/SkConfig8888.cpp @@ -215,6 +215,7 @@ bool SkPixelInfo::CopyPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t break; case kIndex_8_SkColorType: case kARGB_4444_SkColorType: + case kRGBA_F16_SkColorType: if (srcInfo.alphaType() != dstInfo.alphaType()) { return false; } |