 Chromium Code Reviews
 Chromium Code Reviews Issue 791743003:
  Remove GP from drawstate, revision of invariant output for GP  (Closed) 
  Base URL: https://skia.googlesource.com/skia.git@color-to-gp
    
  
    Issue 791743003:
  Remove GP from drawstate, revision of invariant output for GP  (Closed) 
  Base URL: https://skia.googlesource.com/skia.git@color-to-gp| Index: src/gpu/GrOptDrawState.h | 
| diff --git a/src/gpu/GrOptDrawState.h b/src/gpu/GrOptDrawState.h | 
| index cf5737373caa44ba3134f6a7d9efb56bc52ecef4..c6032a957cac668719124ba240a3ce4401d671da 100644 | 
| --- a/src/gpu/GrOptDrawState.h | 
| +++ b/src/gpu/GrOptDrawState.h | 
| @@ -19,6 +19,7 @@ | 
| class GrDeviceCoordTexture; | 
| class GrDrawState; | 
| +class GrPathProcessor; | 
| /** | 
| * Class that holds an optimized version of a GrDrawState. It is meant to be an immutable class, | 
| @@ -30,8 +31,9 @@ public: | 
| typedef GrClipMaskManager::ScissorState ScissorState; | 
| - GrOptDrawState(const GrDrawState& drawState, GrColor, uint8_t coverage, const GrDrawTargetCaps&, | 
| - const ScissorState&, const GrDeviceCoordTexture* dstCopy, GrGpu::DrawType); | 
| + GrOptDrawState(const GrDrawState& drawState, const GrGeometryProcessor*, const GrPathProcessor*, | 
| + const GrDrawTargetCaps&, const ScissorState&, | 
| + const GrDeviceCoordTexture* dstCopy, GrGpu::DrawType); | 
| bool operator== (const GrOptDrawState& that) const; | 
| bool operator!= (const GrOptDrawState& that) const { return !(*this == that); } | 
| @@ -206,7 +208,7 @@ private: | 
| * the function may adjust the blend coefficients. After this function is called the src and dst | 
| * blend coeffs will represent those used by backend API. | 
| */ | 
| - void setOutputStateInfo(const GrDrawState& ds, GrColor coverage, GrXferProcessor::OptFlags, | 
| + void setOutputStateInfo(const GrDrawState& ds, GrXferProcessor::OptFlags, | 
| 
egdaniel
2014/12/10 15:54:30
this function is being removed in cl landing now
 | 
| const GrDrawTargetCaps&); | 
| enum Flags { | 
| @@ -218,6 +220,7 @@ private: | 
| typedef GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> RenderTarget; | 
| typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray; | 
| typedef GrPendingProgramElement<const GrGeometryProcessor> ProgramGeometryProcessor; | 
| + typedef GrPendingProgramElement<const GrPrimitiveProcessor> ProgramPrimitiveProcessor; | 
| typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; | 
| RenderTarget fRenderTarget; | 
| ScissorState fScissorState; | 
| @@ -232,6 +235,7 @@ private: | 
| GrBlendCoeff fDstBlend; | 
| uint32_t fFlags; | 
| ProgramGeometryProcessor fGeometryProcessor; | 
| + ProgramPrimitiveProcessor fPrimitiveProcessor; | 
| GrBatchTracker fBatchTracker; | 
| ProgramXferProcessor fXferProcessor; | 
| FragmentStageArray fFragmentStages; |