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

Unified Diff: src/gpu/GrTestBatch.h

Issue 1275083002: Don't pass pipeline to GrBatch::generateGeometry() (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 | « src/gpu/GrTessellatingPathRenderer.cpp ('k') | src/gpu/effects/GrDashingEffect.cpp » ('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 5e0f107d273dc727f678ff88ba64409434090f98..4bcb7bc1597db7842215b699ed7e988fd20e5c24 100644
--- a/src/gpu/GrTestBatch.h
+++ b/src/gpu/GrTestBatch.h
@@ -46,10 +46,10 @@ public:
fBatch.fCoverageIgnored = !init.readsCoverage();
}
- void generateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) override {
- batchTarget->initDraw(fGeometryProcessor, pipeline);
+ void generateGeometry(GrBatchTarget* batchTarget) override {
+ batchTarget->initDraw(fGeometryProcessor, this->pipeline());
- this->onGenerateGeometry(batchTarget, pipeline);
+ this->onGenerateGeometry(batchTarget);
}
protected:
@@ -69,7 +69,7 @@ private:
return false;
}
- virtual void onGenerateGeometry(GrBatchTarget* batchTarget, const GrPipeline* pipeline) = 0;
+ virtual void onGenerateGeometry(GrBatchTarget* batchTarget) = 0;
struct BatchTracker {
GrColor fColor;
« no previous file with comments | « src/gpu/GrTessellatingPathRenderer.cpp ('k') | src/gpu/effects/GrDashingEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698