Index: src/gpu/batches/GrDrawBatch.cpp |
diff --git a/src/gpu/batches/GrDrawBatch.cpp b/src/gpu/batches/GrDrawBatch.cpp |
index 43ef2ec64bb107372794d7d0efa6623e2be9debc..4253923f335dc9c5736824db437111e7d309d1dc 100644 |
--- a/src/gpu/batches/GrDrawBatch.cpp |
+++ b/src/gpu/batches/GrDrawBatch.cpp |
@@ -15,13 +15,21 @@ GrDrawBatch::~GrDrawBatch() { |
} |
} |
+void GrDrawBatch::getPipelineOptimizations(GrPipelineOptimizations* opt) const { |
+ GrInitInvariantOutput color; |
+ GrInitInvariantOutput coverage; |
+ this->computePipelineOptimizations(&color, &coverage, &opt->fOverrides); |
+ opt->fColorPOI.initUsingInvariantOutput(color); |
+ opt->fCoveragePOI.initUsingInvariantOutput(coverage); |
+} |
+ |
bool GrDrawBatch::installPipeline(const GrPipeline::CreateArgs& args) { |
- GrPipelineOptimizations opts; |
+ GrXPOverridesForBatch overrides; |
void* location = fPipelineStorage.get(); |
- if (!GrPipeline::CreateAt(location, args, &opts)) { |
+ if (!GrPipeline::CreateAt(location, args, &overrides)) { |
return false; |
} |
- this->initBatchTracker(opts); |
+ this->initBatchTracker(overrides); |
fPipelineInstalled = true; |
return true; |
} |