From cb5338cadcc7852026a5225f8cf825530f265fa2 Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Tue, 22 Nov 2016 14:58:45 -0500 Subject: Support sRGB 565. It looks like I'm not going to be able to avoid supporting sRGB G8, I8, 565, 4444, 8888. (A8 and F16 will always be linear.) This fixes 565, and lays out the rest of the accum_*. I did a little reorganization to keep things in ascending bit depth, just for sanity. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5145 CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Change-Id: Ib0508e5a4ee1bab2044a76bcabc367841d634cd2 Reviewed-on: https://skia-review.googlesource.com/5145 Reviewed-by: Herb Derby Commit-Queue: Mike Klein --- src/core/SkRasterPipeline.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core/SkRasterPipeline.h') diff --git a/src/core/SkRasterPipeline.h b/src/core/SkRasterPipeline.h index 5856dc44bd..3f146be493 100644 --- a/src/core/SkRasterPipeline.h +++ b/src/core/SkRasterPipeline.h @@ -79,7 +79,12 @@ M(color_lookup_table) M(lab_to_xyz) M(swap_rb) \ M(clamp_x) M(mirror_x) M(repeat_x) \ M(clamp_y) M(mirror_y) M(repeat_y) \ - M(accum_565) M(accum_8888) M(accum_srgb) M(accum_f16) \ + M(accum_f16) M(accum_a8) \ + M(accum_g8) M(accum_g8_srgb) \ + M(accum_i8) M(accum_i8_srgb) \ + M(accum_565) M(accum_565_srgb) \ + M(accum_4444) M(accum_4444_srgb) \ + M(accum_8888) M(accum_8888_srgb) \ M(top_left) M(top_right) M(bottom_left) M(bottom_right) class SkRasterPipeline { -- cgit v1.2.3