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

Unified Diff: src/gpu/GrTestBatch.h

Issue 1110993002: Revert of removing equality / compute invariant loops from GrGeometryProcessors (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanup1
Patch Set: Created 5 years, 8 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 | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTestBatch.h
diff --git a/src/gpu/GrTestBatch.h b/src/gpu/GrTestBatch.h
index ccc0b94e587bb9e6f6c1da5b402d0166d53ebb9b..716912dc7687f88c35de9e9df2ed18c2708c7ef9 100644
--- a/src/gpu/GrTestBatch.h
+++ b/src/gpu/GrTestBatch.h
@@ -24,7 +24,7 @@
void getInvariantOutputColor(GrInitInvariantOutput* out) const override {
// When this is called on a batch, there is only one geometry bundle
- if (fHasVertexColor) {
+ if (fGeometryProcessor->hasVertexColor()) {
out->setUnknownFourComponents();
} else {
out->setKnownFourComponents(fGeometryProcessor->color());
@@ -67,8 +67,7 @@
}
protected:
- GrTestBatch(const GrGeometryProcessor* gp, bool hasVertexColor = false)
- : fHasVertexColor(hasVertexColor) {
+ GrTestBatch(const GrGeometryProcessor* gp) {
fGeometryProcessor.reset(SkRef(gp));
}
@@ -90,7 +89,6 @@
bool fCoverageIgnored;
};
- bool fHasVertexColor;
SkAutoTUnref<const GrGeometryProcessor> fGeometryProcessor;
BatchTracker fBatch;
};
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698