aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrTessellatingPathRenderer.cpp
diff options
context:
space:
mode:
authorGravatar ethannicholas <ethannicholas@google.com>2015-11-24 12:10:10 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-24 12:10:10 -0800
commitff2103200bad7abcf8929ae22ac78a9f4f725142 (patch)
treeb6fef9998bf11fdfbb9855414e8980cf47a2a4e9 /src/gpu/batches/GrTessellatingPathRenderer.cpp
parent6868c3fccf65d297a64919a7cb74f09780c845c3 (diff)
New API for computing optimization invariants.
Diffstat (limited to 'src/gpu/batches/GrTessellatingPathRenderer.cpp')
-rw-r--r--src/gpu/batches/GrTessellatingPathRenderer.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gpu/batches/GrTessellatingPathRenderer.cpp b/src/gpu/batches/GrTessellatingPathRenderer.cpp
index a3a888302a..8cd411a49f 100644
--- a/src/gpu/batches/GrTessellatingPathRenderer.cpp
+++ b/src/gpu/batches/GrTessellatingPathRenderer.cpp
@@ -1397,22 +1397,22 @@ public:
const char* name() const override { return "TessellatingPathBatch"; }
- void getInvariantOutputColor(GrInitInvariantOutput* out) const override {
- out->setKnownFourComponents(fColor);
- }
-
- void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override {
- out->setUnknownSingleComponent();
+ void computePipelineOptimizations(GrInitInvariantOutput* color,
+ GrInitInvariantOutput* coverage,
+ GrBatchToXPOverrides* overrides) const override {
+ color->setKnownFourComponents(fColor);
+ coverage->setUnknownSingleComponent();
+ overrides->fUsePLSDstRead = false;
}
private:
- void initBatchTracker(const GrPipelineOptimizations& opt) override {
+ void initBatchTracker(const GrXPOverridesForBatch& overrides) override {
// Handle any color overrides
- if (!opt.readsColor()) {
+ if (!overrides.readsColor()) {
fColor = GrColor_ILLEGAL;
}
- opt.getOverrideColorIfSet(&fColor);
- fPipelineInfo = opt;
+ overrides.getOverrideColorIfSet(&fColor);
+ fPipelineInfo = overrides;
}
int tessellate(GrUniqueKey* key,
@@ -1621,7 +1621,7 @@ private:
GrStrokeInfo fStroke;
SkMatrix fViewMatrix;
SkRect fClipBounds; // in source space
- GrPipelineOptimizations fPipelineInfo;
+ GrXPOverridesForBatch fPipelineInfo;
typedef GrVertexBatch INHERITED;
};