diff options
Diffstat (limited to 'bench/SkRasterPipelineBench.cpp')
-rw-r--r-- | bench/SkRasterPipelineBench.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/bench/SkRasterPipelineBench.cpp b/bench/SkRasterPipelineBench.cpp index bfe2110362..624b7951de 100644 --- a/bench/SkRasterPipelineBench.cpp +++ b/bench/SkRasterPipelineBench.cpp @@ -32,14 +32,18 @@ public: } void onDraw(int loops, SkCanvas*) override { + void* mask_ctx = mask; + void* src_ctx = src; + void* dst_ctx = dst; + SkRasterPipeline p; - p.append(SkRasterPipeline::load_s_srgb, src); - p.append(SkRasterPipeline:: scale_u8, mask); + p.append(SkRasterPipeline::load_s_srgb, &src_ctx); + p.append(SkRasterPipeline::scale_u8, &mask_ctx); p.append(kF16 ? SkRasterPipeline::load_d_f16 - : SkRasterPipeline::load_d_srgb, dst); - p.append(SkRasterPipeline:: srcover); + : SkRasterPipeline::load_d_srgb, &dst_ctx); + p.append(SkRasterPipeline::srcover); p.append(kF16 ? SkRasterPipeline::store_f16 - : SkRasterPipeline::store_srgb, dst); + : SkRasterPipeline::store_srgb, &dst_ctx); auto compiled = p.compile(); while (loops --> 0) { |