Index: src/gpu/gl/GrGLProgramDesc.h |
diff --git a/src/gpu/gl/GrGLProgramDesc.h b/src/gpu/gl/GrGLProgramDesc.h |
index 0cf3b22b622c0526d59d674f45edfd5131fa1ff9..e85133cc97613a0ab5a7bbb71f2b863e34b0e610 100644 |
--- a/src/gpu/gl/GrGLProgramDesc.h |
+++ b/src/gpu/gl/GrGLProgramDesc.h |
@@ -55,7 +55,9 @@ public: |
/** |
* Builds a program descriptor from a GrDrawState. Whether the primitive type is points, the |
* output of GrDrawState::getBlendOpts, and the caps of the GrGpuGL are also inputs. It also |
- * writes a tightly packed array of GrEffectStage* from the drawState. |
+ * outputs the color and coverage stages referenced by the generated descriptor. This may |
+ * not contain all stages from the draw state and coverage stages from the drawState may |
+ * be treated as color stages in the output. |
*/ |
static void Build(const GrDrawState&, |
bool isPoints, |
@@ -64,7 +66,8 @@ public: |
GrBlendCoeff dstCoeff, |
const GrGpuGL* gpu, |
const GrDeviceCoordTexture* dstCopy, |
- const GrEffectStage* outStages[GrDrawState::kNumStages], |
+ SkTArray<const GrEffectStage*, true>* outColorStages, |
+ SkTArray<const GrEffectStage*, true>* outCoverageStages, |
GrGLProgramDesc* outDesc); |
int numColorEffects() const { |