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

Unified Diff: src/gpu/GrPipelineBuilder.h

Issue 1311763003: Remove unused calcPOIs with color/coverage input. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months 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 | « no previous file | src/gpu/GrPipelineBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPipelineBuilder.h
diff --git a/src/gpu/GrPipelineBuilder.h b/src/gpu/GrPipelineBuilder.h
index ad1bbfb714a3f760b3626b95a538d003ee4e3044..1c6eb5f0220a013aa017ffe459d8b63c60571d10 100644
--- a/src/gpu/GrPipelineBuilder.h
+++ b/src/gpu/GrPipelineBuilder.h
@@ -69,14 +69,12 @@ public:
const GrFragmentProcessor* addColorProcessor(const GrFragmentProcessor* effect) {
SkASSERT(effect);
SkNEW_APPEND_TO_TARRAY(&fColorStages, GrFragmentStage, (effect));
- fColorProcInfoValid = false;
return effect;
}
const GrFragmentProcessor* addCoverageProcessor(const GrFragmentProcessor* effect) {
SkASSERT(effect);
SkNEW_APPEND_TO_TARRAY(&fCoverageStages, GrFragmentStage, (effect));
- fCoverageProcInfoValid = false;
return effect;
}
@@ -437,18 +435,6 @@ private:
void calcColorInvariantOutput(const GrDrawBatch*) const;
void calcCoverageInvariantOutput(const GrDrawBatch*) const;
- /**
- * If fColorProcInfoValid is false, function calculates the invariant output for the color
- * processors and results are stored in fColorProcInfo.
- */
- void calcColorInvariantOutput(GrColor) const;
-
- /**
- * If fCoverageProcInfoValid is false, function calculates the invariant output for the coverage
- * processors and results are stored in fCoverageProcInfo.
- */
- void calcCoverageInvariantOutput(GrColor) const;
-
// Some of the auto restore objects assume that no effects are removed during their lifetime.
// This is used to assert that this condition holds.
SkDEBUGCODE(mutable int fBlockEffectRemovalCnt;)
@@ -467,10 +453,6 @@ private:
mutable GrProcOptInfo fColorProcInfo;
mutable GrProcOptInfo fCoverageProcInfo;
- mutable bool fColorProcInfoValid;
- mutable bool fCoverageProcInfoValid;
- mutable GrColor fColorCache;
- mutable GrColor fCoverageCache;
friend class GrPipeline;
};
« no previous file with comments | « no previous file | src/gpu/GrPipelineBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698