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

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
Index: src/gpu/GrPipelineBuilder.h
diff --git a/src/gpu/GrPipelineBuilder.h b/src/gpu/GrPipelineBuilder.h
index 010685b3e2a85dce11a8082aa741810da0a37319..fea9c406f5740156c4d4c4d23a23f4fb630878f4 100644
--- a/src/gpu/GrPipelineBuilder.h
+++ b/src/gpu/GrPipelineBuilder.h
@@ -363,15 +363,7 @@ 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; }
@@ -387,8 +379,8 @@ private:
/**
* 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;
+ void computeBatchToXPOverrides(GrInitInvariantOutput* color, GrInitInvariantOutput* coverage,
+ bool* usePLSDstRead) const;
joshualitt 2015/11/23 19:09:29 Remove
// Some of the auto restore objects assume that no effects are removed during their lifetime.
// This is used to assert that this condition holds.
@@ -405,10 +397,8 @@ private:
FragmentProcessorArray fCoverageFragmentProcessors;
GrClip fClip;
- mutable GrProcOptInfo fColorProcInfo;
- mutable GrProcOptInfo fCoverageProcInfo;
-
friend class GrPipeline;
+ friend class GrDrawTarget;
};
#endif

Powered by Google App Engine
This is Rietveld 408576698