aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrAAStrokeRectBatch.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-08-10 10:47:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-10 10:47:29 -0700
commit91d844de47bdc1c3f807c85293e46943dcfc712d (patch)
tree98e72b2f8b0a3f1028b149316f2bdbb1fcccb437 /src/gpu/batches/GrAAStrokeRectBatch.cpp
parent7fc2a2610ec31a659fe2603f8960d376822d54cb (diff)
Rename GrPipelineInfo to GrPipelineOptimizations
TBR=joshualitt@google.com Review URL: https://codereview.chromium.org/1274513005
Diffstat (limited to 'src/gpu/batches/GrAAStrokeRectBatch.cpp')
-rw-r--r--src/gpu/batches/GrAAStrokeRectBatch.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gpu/batches/GrAAStrokeRectBatch.cpp b/src/gpu/batches/GrAAStrokeRectBatch.cpp
index 49329b2a94..fa88fd13df 100644
--- a/src/gpu/batches/GrAAStrokeRectBatch.cpp
+++ b/src/gpu/batches/GrAAStrokeRectBatch.cpp
@@ -43,20 +43,20 @@ static const GrGeometryProcessor* create_stroke_rect_gp(bool tweakAlphaForCovera
}
-void GrAAStrokeRectBatch::initBatchTracker(const GrPipelineInfo& init) {
+void GrAAStrokeRectBatch::initBatchTracker(const GrPipelineOptimizations& opt) {
// Handle any color overrides
- if (!init.readsColor()) {
+ if (!opt.readsColor()) {
fGeoData[0].fColor = GrColor_ILLEGAL;
}
- init.getOverrideColorIfSet(&fGeoData[0].fColor);
+ opt.getOverrideColorIfSet(&fGeoData[0].fColor);
// setup batch properties
- fBatch.fColorIgnored = !init.readsColor();
+ fBatch.fColorIgnored = !opt.readsColor();
fBatch.fColor = fGeoData[0].fColor;
- fBatch.fUsesLocalCoords = init.readsLocalCoords();
- fBatch.fCoverageIgnored = !init.readsCoverage();
+ fBatch.fUsesLocalCoords = opt.readsLocalCoords();
+ fBatch.fCoverageIgnored = !opt.readsCoverage();
fBatch.fMiterStroke = fGeoData[0].fMiterStroke;
- fBatch.fCanTweakAlphaForCoverage = init.canTweakAlphaForCoverage();
+ fBatch.fCanTweakAlphaForCoverage = opt.canTweakAlphaForCoverage();
}
void GrAAStrokeRectBatch::generateGeometry(GrBatchTarget* batchTarget) {