diff options
author | Matt Sarett <msarett@google.com> | 2017-01-12 18:34:29 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-13 00:12:49 +0000 |
commit | 379938e47bc9edb6edfd21aabefa01aed71dd135 (patch) | |
tree | e67f6678b06f849e4ceb16844a4c00819e0d15a8 /include/core | |
parent | ac42aebb7b49ef3d916da1e5a75b4c7cd4cfb119 (diff) |
Use RasterPipeline to support full precision on 16-bit RGBA pngs
Reland of Original Change:
https://skia-review.googlesource.com/6260
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD
Change-Id: I809984dd9af225103bfbe83492a17c19da7c5e40
Reviewed-on: https://skia-review.googlesource.com/6980
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkColorSpaceXform.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/core/SkColorSpaceXform.h b/include/core/SkColorSpaceXform.h index b750c099f2..299fe26a3a 100644 --- a/include/core/SkColorSpaceXform.h +++ b/include/core/SkColorSpaceXform.h @@ -27,8 +27,12 @@ public: enum ColorFormat { kRGBA_8888_ColorFormat, kBGRA_8888_ColorFormat, - kRGBA_F16_ColorFormat, - kRGBA_F32_ColorFormat, + + // Unsigned, big-endian, 16-bit integer + kRGBA_U16_BE_ColorFormat, // Src only + + kRGBA_F16_ColorFormat, // Dst only + kRGBA_F32_ColorFormat, // Dst only }; /** @@ -42,7 +46,6 @@ public: * @param len Number of pixels in the buffers * @param dstColorFormat Describes color format of |dst| * @param srcColorFormat Describes color format of |src| - * Must be kRGBA_8888 or kBGRA_8888 * @param alphaType Describes alpha properties of the |dst| (and |src|) * kUnpremul preserves input alpha values * kPremul performs a premultiplication and also preserves alpha values |