diff options
author | Matt Sarett <msarett@google.com> | 2017-01-12 13:13:48 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-12 19:09:49 +0000 |
commit | bb2339da39ab3ee59121acd911920dafcd4a2f72 (patch) | |
tree | e46139a26b97061d14035de4669040f757fd2dc3 /include | |
parent | 90ee03b0d1778f37448dfd82d1f5cfbbec9f798f (diff) |
Use RasterPipeline to support full precision on 16-bit RGBA pngs
TODO: Support more precision on 16-bit RGB pngs
BUG=skia:
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD
Change-Id: I89dfef3b4887b9c4895c17309933883ab90ffa4d
Reviewed-on: https://skia-review.googlesource.com/6260
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'include')
-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 |