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

Unified Diff: src/gpu/GrProcOptInfo.cpp

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
« no previous file with comments | « src/gpu/GrProcOptInfo.h ('k') | src/gpu/batches/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrProcOptInfo.cpp
diff --git a/src/gpu/GrProcOptInfo.cpp b/src/gpu/GrProcOptInfo.cpp
index 6a2584d5f9d68aa6aa00094438d8374f40697d17..bfd9e9ec8ceabd638a3e50179bdfe1aff9216348 100644
--- a/src/gpu/GrProcOptInfo.cpp
+++ b/src/gpu/GrProcOptInfo.cpp
@@ -11,24 +11,6 @@
#include "batches/GrDrawBatch.h"
-void GrProcOptInfo::calcColorWithBatch(const GrDrawBatch* batch,
- const GrFragmentProcessor* const processors[],
- int cnt) {
- GrInitInvariantOutput out;
- batch->getInvariantOutputColor(&out);
- fInOut.reset(out);
- this->internalCalc(processors, cnt, batch->willReadFragmentPosition());
-}
-
-void GrProcOptInfo::calcCoverageWithBatch(const GrDrawBatch* batch,
- const GrFragmentProcessor* const processors[],
- int cnt) {
- GrInitInvariantOutput out;
- batch->getInvariantOutputCoverage(&out);
- fInOut.reset(out);
- this->internalCalc(processors, cnt, batch->willReadFragmentPosition());
-}
-
void GrProcOptInfo::calcWithInitialValues(const GrFragmentProcessor * const processors[],
int cnt,
GrColor startColor,
@@ -44,6 +26,14 @@ void GrProcOptInfo::calcWithInitialValues(const GrFragmentProcessor * const proc
this->internalCalc(processors, cnt, false);
}
+void GrProcOptInfo::initUsingInvariantOutput(GrInitInvariantOutput invOutput) {
+ fInOut.reset(invOutput);
+}
+
+void GrProcOptInfo::completeCalculations(const GrFragmentProcessor * const processors[], int cnt) {
+ this->internalCalc(processors, cnt, false);
+}
+
void GrProcOptInfo::internalCalc(const GrFragmentProcessor* const processors[],
int cnt,
bool initWillReadFragmentPosition) {
« no previous file with comments | « src/gpu/GrProcOptInfo.h ('k') | src/gpu/batches/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698