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