Index: src/gpu/gl/GrGLProgramDesc.cpp |
diff --git a/src/gpu/gl/GrGLProgramDesc.cpp b/src/gpu/gl/GrGLProgramDesc.cpp |
index 5365ffbf043aac5c102f60f542ffdd1758784c4d..6b38cc6d938459c79783f9c3a6de7efe9e7f84b3 100644 |
--- a/src/gpu/gl/GrGLProgramDesc.cpp |
+++ b/src/gpu/gl/GrGLProgramDesc.cpp |
@@ -134,9 +134,8 @@ bool GrGLProgramDescBuilder::Build(GrProgramDesc* desc, |
return false; |
} |
- for (int s = 0; s < pipeline.numFragmentStages(); ++s) { |
- const GrPendingFragmentStage& fps = pipeline.getFragmentStage(s); |
- const GrFragmentProcessor& fp = *fps.processor(); |
+ for (int i = 0; i < pipeline.numFragmentProcessors(); ++i) { |
+ const GrFragmentProcessor& fp = pipeline.getFragmentProcessor(i); |
if (!get_frag_proc_and_meta_keys(primProc, fp, gpu->glCaps(), &b)) { |
glDesc->key().reset(); |
return false; |
@@ -167,8 +166,8 @@ bool GrGLProgramDescBuilder::Build(GrProgramDesc* desc, |
header->fFragPosKey = 0; |
} |
header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); |
- header->fColorEffectCnt = pipeline.numColorFragmentStages(); |
- header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages(); |
+ header->fColorEffectCnt = pipeline.numColorFragmentProcessors(); |
+ header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors(); |
glDesc->finalize(); |
return true; |
} |