| Index: src/gpu/GrOptDrawState.h
|
| diff --git a/src/gpu/GrOptDrawState.h b/src/gpu/GrOptDrawState.h
|
| index bf4f78e5ef325ea08d34961b04225ef93d25e2da..5a2b5123dd49234414a055356860802eef1d8dce 100644
|
| --- a/src/gpu/GrOptDrawState.h
|
| +++ b/src/gpu/GrOptDrawState.h
|
| @@ -97,6 +97,9 @@ public:
|
|
|
| bool hasGeometryProcessor() const { return SkToBool(fGeometryProcessor.get()); }
|
| const GrGeometryProcessor* getGeometryProcessor() const { return fGeometryProcessor.get(); }
|
| +
|
| + const GrXferProcessor* getXferProcessor() const { return fXferProcessor.get(); }
|
| +
|
| const GrPendingFragmentStage& getColorStage(int idx) const {
|
| SkASSERT(idx < this->numColorStages());
|
| return fFragmentStages[idx];
|
| @@ -251,6 +254,7 @@ private:
|
| typedef GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> RenderTarget;
|
| typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray;
|
| typedef GrPendingProgramElement<const GrGeometryProcessor> ProgramGeometryProcessor;
|
| + typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor;
|
| RenderTarget fRenderTarget;
|
| ScissorState fScissorState;
|
| GrColor fColor;
|
| @@ -267,6 +271,7 @@ private:
|
| GrBlendCoeff fDstBlend;
|
| uint32_t fFlags;
|
| ProgramGeometryProcessor fGeometryProcessor;
|
| + ProgramXferProcessor fXferProcessor;
|
| FragmentStageArray fFragmentStages;
|
|
|
| // This function is equivalent to the offset into fFragmentStages where coverage stages begin.
|
|
|