| Index: src/gpu/GrPipeline.cpp
|
| diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp
|
| index 8c40438a2722effe1ede3bc95e4afcfa582d0558..2c3422a7462a9b5a74dd7514b1ca457135bc6176 100644
|
| --- a/src/gpu/GrPipeline.cpp
|
| +++ b/src/gpu/GrPipeline.cpp
|
| @@ -87,20 +87,16 @@ GrPipeline::GrPipeline(const GrPipelineBuilder& pipelineBuilder,
|
|
|
| // Copy Stages from PipelineBuilder to Pipeline
|
| for (int i = firstColorStageIdx; i < pipelineBuilder.numColorFragmentStages(); ++i) {
|
| - SkNEW_APPEND_TO_TARRAY(&fFragmentStages,
|
| - GrPendingFragmentStage,
|
| - (pipelineBuilder.fColorStages[i]));
|
| - usesLocalCoords = usesLocalCoords ||
|
| - pipelineBuilder.fColorStages[i].processor()->usesLocalCoords();
|
| + const GrFragmentProcessor* fp = pipelineBuilder.fColorStages[i].processor();
|
| + SkNEW_APPEND_TO_TARRAY(&fFragmentStages, GrPendingFragmentStage, (fp));
|
| + usesLocalCoords = usesLocalCoords || fp->usesLocalCoords();
|
| }
|
|
|
| fNumColorStages = fFragmentStages.count();
|
| for (int i = firstCoverageStageIdx; i < pipelineBuilder.numCoverageFragmentStages(); ++i) {
|
| - SkNEW_APPEND_TO_TARRAY(&fFragmentStages,
|
| - GrPendingFragmentStage,
|
| - (pipelineBuilder.fCoverageStages[i]));
|
| - usesLocalCoords = usesLocalCoords ||
|
| - pipelineBuilder.fCoverageStages[i].processor()->usesLocalCoords();
|
| + const GrFragmentProcessor* fp = pipelineBuilder.fCoverageStages[i].processor();
|
| + SkNEW_APPEND_TO_TARRAY(&fFragmentStages, GrPendingFragmentStage, (fp));
|
| + usesLocalCoords = usesLocalCoords || fp->usesLocalCoords();
|
| }
|
|
|
| // Setup info we need to pass to GrPrimitiveProcessors that are used with this GrPipeline.
|
|
|