Index: src/gpu/GrProgramDesc.h |
diff --git a/src/gpu/GrProgramDesc.h b/src/gpu/GrProgramDesc.h |
index 655254f892360c0f84550aaa440fadda0e05edf2..ef7be23cf3a0cf8441c5d00e8683423d5cb40752 100644 |
--- a/src/gpu/GrProgramDesc.h |
+++ b/src/gpu/GrProgramDesc.h |
@@ -103,8 +103,6 @@ public: |
// effects that read the fragment position. |
// Otherwise, 0. |
- SkBool8 fEmitsPointSize; |
- |
ColorInput fColorInput : 8; |
ColorInput fCoverageInput : 8; |
@@ -136,6 +134,19 @@ public: |
// A struct to communicate descriptor information to the program descriptor builder |
struct DescInfo { |
+ bool operator==(const DescInfo& that) const { |
+ return fHasVertexColor == that.fHasVertexColor && |
+ fHasVertexCoverage == that.fHasVertexCoverage && |
+ fInputColorIsUsed == that.fInputColorIsUsed && |
+ fInputCoverageIsUsed == that.fInputCoverageIsUsed && |
+ fReadsDst == that.fReadsDst && |
+ fReadsFragPosition == that.fReadsFragPosition && |
+ fRequiresLocalCoordAttrib == that.fRequiresLocalCoordAttrib && |
+ fPrimaryOutputType == that.fPrimaryOutputType && |
+ fSecondaryOutputType == that.fSecondaryOutputType; |
+ |
+ } |
+ bool operator!=(const DescInfo& that) const { return !(*this == that); }; |
// TODO when GPs control uniform / attribute handling of color / coverage, then we can |
// clean this up |
bool fHasVertexColor; |