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