From e03339a35435b6c4b9ddb5b9d1d3592be5185de2 Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Mon, 28 Nov 2016 13:24:27 -0500 Subject: 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 Commit-Queue: Mike Klein --- bench/SkRasterPipelineBench.cpp | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'bench/SkRasterPipelineBench.cpp') 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) { -- cgit v1.2.3