diff options
Diffstat (limited to 'bench/SkRasterPipelineBench.cpp')
-rw-r--r-- | bench/SkRasterPipelineBench.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bench/SkRasterPipelineBench.cpp b/bench/SkRasterPipelineBench.cpp index 0df8086401..818ab2b447 100644 --- a/bench/SkRasterPipelineBench.cpp +++ b/bench/SkRasterPipelineBench.cpp @@ -123,8 +123,9 @@ public: SkColorSpaceTransferFn from_2dot2 = gamma( 2.2f), to_2dot2 = gamma(1/2.2f); - SkRasterPipeline_<256> p; - p.append(SkRasterPipeline::uniform_color, &c); + SkSTArenaAlloc<256> alloc; + SkRasterPipeline p(&alloc); + p.append_constant_color(&alloc, c); p.append(SkRasterPipeline::parametric_r, &from_2dot2); p.append(SkRasterPipeline::parametric_g, &from_2dot2); p.append(SkRasterPipeline::parametric_b, &from_2dot2); |