aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrStrokeRectBatch.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/GrStrokeRectBatch.cpp
parent7fc2a2610ec31a659fe2603f8960d376822d54cb (diff)
Rename GrPipelineInfo to GrPipelineOptimizations
TBR=joshualitt@google.com Review URL: https://codereview.chromium.org/1274513005
Diffstat (limited to 'src/gpu/batches/GrStrokeRectBatch.cpp')
-rw-r--r--src/gpu/batches/GrStrokeRectBatch.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gpu/batches/GrStrokeRectBatch.cpp b/src/gpu/batches/GrStrokeRectBatch.cpp
index c850fb7d9a..9c31149a5b 100644
--- a/src/gpu/batches/GrStrokeRectBatch.cpp
+++ b/src/gpu/batches/GrStrokeRectBatch.cpp
@@ -28,18 +28,18 @@ GrStrokeRectBatch::GrStrokeRectBatch(const Geometry& geometry, bool snapToPixelC
}
}
-void GrStrokeRectBatch::initBatchTracker(const GrPipelineInfo& init) {
+void GrStrokeRectBatch::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();
}
/* create a triangle strip that strokes the specified rect. There are 8