From 3a84615bbd195045e7dbb707fcabf623513771dc Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Tue, 7 Feb 2017 12:05:10 -0500 Subject: [PATCH] SkRasterPipelineBlitter doesn't need an SkArenaAlloc. Change-Id: Ie4f8bb1c05dee4639a075c100abbc5262e521fc4 Reviewed-on: https://skia-review.googlesource.com/8128 Commit-Queue: Herb Derby Reviewed-by: Herb Derby --- src/core/SkRasterPipelineBlitter.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/core/SkRasterPipelineBlitter.cpp b/src/core/SkRasterPipelineBlitter.cpp index 80e6344..273f5fe 100644 --- a/src/core/SkRasterPipelineBlitter.cpp +++ b/src/core/SkRasterPipelineBlitter.cpp @@ -63,10 +63,6 @@ private: float fCurrentCoverage = 0.0f; int fCurrentY = 0; - // Scratch space for shaders and color filters to use. - char fScratch[64]; - SkArenaAlloc fArena{fScratch, sizeof(fScratch), 128}; - typedef SkBlitter INHERITED; }; @@ -116,8 +112,7 @@ SkBlitter* SkRasterPipelineBlitter::Create(const SkPixmap& dst, is_constant = true; if (shader) { pipeline->append(SkRasterPipeline::seed_shader, &blitter->fCurrentY); - if (!shader->appendStages(pipeline, dst.colorSpace(), &blitter->fArena, - ctm, paint)) { + if (!shader->appendStages(pipeline, dst.colorSpace(), alloc, ctm, paint)) { return nullptr; } if (!is_opaque) { @@ -137,8 +132,7 @@ SkBlitter* SkRasterPipelineBlitter::Create(const SkPixmap& dst, } if (colorFilter) { - if (!colorFilter->appendStages(pipeline, dst.colorSpace(), &blitter->fArena, - is_opaque)) { + if (!colorFilter->appendStages(pipeline, dst.colorSpace(), alloc, is_opaque)) { return nullptr; } is_opaque = is_opaque && (colorFilter->getFlags() & SkColorFilter::kAlphaUnchanged_Flag); -- 2.7.4