From c544e7043c9727fb5697120e241b6860816ef749 Mon Sep 17 00:00:00 2001 From: brianosman Date: Wed, 7 Sep 2016 11:30:47 -0700 Subject: 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 --- src/core/SkConfig8888.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit v1.2.3