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

Unified Diff: src/gpu/GrPipelineBuilder.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
« no previous file with comments | « src/gpu/GrPipeline.cpp ('k') | 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 bf0bed56c9cbd7d1a8a3dac84d1a31337526b960..1526b0f68cce849e0cfca373b8584e3185ff8e0e 100644
--- a/src/gpu/GrPipelineBuilder.h
+++ b/src/gpu/GrPipelineBuilder.h
@@ -360,33 +360,12 @@ public:
///////////////////////////////////////////////////////////////////////////
- const GrProcOptInfo& colorProcInfo(const GrDrawBatch* batch) const {
- this->calcColorInvariantOutput(batch);
- return fColorProcInfo;
- }
-
- const GrProcOptInfo& coverageProcInfo(const GrDrawBatch* batch) const {
- this->calcCoverageInvariantOutput(batch);
- return fCoverageProcInfo;
- }
+ bool usePLSDstRead(const GrDrawBatch* batch) const;
void setClip(const GrClip& clip) { fClip = clip; }
const GrClip& clip() const { return fClip; }
private:
- // Calculating invariant color / coverage information is expensive, so we partially cache the
- // results.
- //
- // canUseFracCoveragePrimProc() - Called in regular skia draw, caches results but only for a
- // specific color and coverage. May be called multiple times
- // GrOptDrawState constructor - never caches results
-
- /**
- * GrBatch provides the initial seed for these loops based off of its initial geometry data
- */
- void calcColorInvariantOutput(const GrDrawBatch*) const;
- void calcCoverageInvariantOutput(const GrDrawBatch*) 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;)
@@ -402,10 +381,8 @@ private:
FragmentProcessorArray fCoverageFragmentProcessors;
GrClip fClip;
- mutable GrProcOptInfo fColorProcInfo;
- mutable GrProcOptInfo fCoverageProcInfo;
-
friend class GrPipeline;
+ friend class GrDrawTarget;
};
#endif
« no previous file with comments | « src/gpu/GrPipeline.cpp ('k') | src/gpu/GrPipelineBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698