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

Unified Diff: src/gpu/GrProcOptInfo.h

Issue 1467553002: New API for computing optimization invariants. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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
Index: src/gpu/GrProcOptInfo.h
diff --git a/src/gpu/GrProcOptInfo.h b/src/gpu/GrProcOptInfo.h
index caf53d773ace6dc919f2cdb6170ce50e349622f5..3452fb2db580c9abf6b53cc11037f9db1b4a3bf5 100644
--- a/src/gpu/GrProcOptInfo.h
+++ b/src/gpu/GrProcOptInfo.h
@@ -32,10 +32,9 @@ public:
void calcWithInitialValues(const GrFragmentProcessor* const *, int cnt, GrColor startColor,
GrColorComponentFlags, bool areCoverageStages, bool isLCD = false);
-
- void calcColorWithBatch(const GrDrawBatch*, const GrFragmentProcessor* const[], int cnt);
- void calcCoverageWithBatch(const GrDrawBatch*, const GrFragmentProcessor* const[], int cnt);
-
+ void initUsingInvariantOutput(GrInitInvariantOutput invOutput);
+ void completeCalculations(const GrFragmentProcessor * const processors[], int cnt);
+
bool isSolidWhite() const { return fInOut.isSolidWhite(); }
bool isOpaque() const { return fInOut.isOpaque(); }
bool isSingleComponent() const { return fInOut.isSingleComponent(); }
@@ -89,6 +88,8 @@ private:
bool fInputColorIsUsed;
GrColor fInputColor;
bool fReadsFragPosition;
+
+ friend class GrPipelineBuilder;
egdaniel 2015/11/24 00:08:14 does this need to be friended?
};
#endif

Powered by Google App Engine
This is Rietveld 408576698