aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRasterPipeline.h
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2016-11-22 14:58:45 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-22 20:40:05 +0000
commitcb5338cadcc7852026a5225f8cf825530f265fa2 (patch)
tree134454b8a11fbf5cd6d2e2dd67de9978e5e4d506 /src/core/SkRasterPipeline.h
parent2cb6cb7218171b357bb5c934f032ba69c7b78401 (diff)
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 <herb@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core/SkRasterPipeline.h')
-rw-r--r--src/core/SkRasterPipeline.h7
1 files changed, 6 insertions, 1 deletions
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 {