diff options
author | Mike Klein <mtklein@chromium.org> | 2016-11-28 13:24:27 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-28 21:13:34 +0000 |
commit | e03339a35435b6c4b9ddb5b9d1d3592be5185de2 (patch) | |
tree | bcf48ad386cc0e9930d0b1a9d2fc3b5c89835ade /bench/SkRasterPipelineBench.cpp | |
parent | 3c1072d02776352e5c7c810bdb49eb3da3c639c0 (diff) |
Convert blitter over to new style from_srgb, to_srgb.
Every sRGB GM changes, none noticeably.
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD
Change-Id: I632845aea0f40751639cccbcfde8fa270cae0301
Reviewed-on: https://skia-review.googlesource.com/5275
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'bench/SkRasterPipelineBench.cpp')
-rw-r--r-- | bench/SkRasterPipelineBench.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/bench/SkRasterPipelineBench.cpp b/bench/SkRasterPipelineBench.cpp index 15576c41d1..84c0930466 100644 --- a/bench/SkRasterPipelineBench.cpp +++ b/bench/SkRasterPipelineBench.cpp @@ -37,13 +37,22 @@ public: void* dst_ctx = dst; SkRasterPipeline p; - p.append(SkRasterPipeline::load_s_srgb, &src_ctx); + p.append(SkRasterPipeline::load_s_8888, &src_ctx); + p.append(SkRasterPipeline::from_srgb_s); p.append(SkRasterPipeline::scale_u8, &mask_ctx); - p.append(kF16 ? SkRasterPipeline::load_d_f16 - : SkRasterPipeline::load_d_srgb, &dst_ctx); + if (kF16) { + p.append(SkRasterPipeline::load_d_f16, &dst_ctx); + } else { + p.append(SkRasterPipeline::load_d_8888, &dst_ctx); + p.append(SkRasterPipeline::from_srgb_d); + } p.append(SkRasterPipeline::srcover); - p.append(kF16 ? SkRasterPipeline::store_f16 - : SkRasterPipeline::store_srgb, &dst_ctx); + if (kF16) { + p.append(SkRasterPipeline::store_f16, &dst_ctx); + } else { + p.append(SkRasterPipeline::to_srgb); + p.append(SkRasterPipeline::store_8888, &dst_ctx); + } auto compiled = p.compile(); while (loops --> 0) { |