Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: src/gpu/GrProgramDesc.h

Issue 777673003: move program descriptor generation to flush (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix builder bug Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrOptDrawState.cpp ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/gpu/GrOptDrawState.cpp ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698