diff options
author | Mike Klein <mtklein@chromium.org> | 2017-02-07 12:05:10 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-08 21:26:06 +0000 |
commit | 3a84615bbd195045e7dbb707fcabf623513771dc (patch) | |
tree | 114c323dca3050b7e60a131f1401bbe217a8b332 /src | |
parent | 69d8d66eae7688f4c5485428e06866a274af0c0e (diff) |
SkRasterPipelineBlitter doesn't need an SkArenaAlloc.
Change-Id: Ie4f8bb1c05dee4639a075c100abbc5262e521fc4
Reviewed-on: https://skia-review.googlesource.com/8128
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkRasterPipelineBlitter.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/SkRasterPipelineBlitter.cpp b/src/core/SkRasterPipelineBlitter.cpp index 80e63449a1..273f5fe614 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); |