diff options
author | 2016-12-21 09:20:25 -0500 | |
---|---|---|
committer | 2016-12-21 15:12:49 +0000 | |
commit | 92aee3d6857386f2b5b8e1148e680a7b58e9b1fc (patch) | |
tree | 8b54e16b9dbee4411c8e996504872672e1f61fa3 /src/gpu/ops/GrDrawVerticesOp.cpp | |
parent | bd81a327b5728b51cac8642128bd2f165d078ef7 (diff) |
This renames methods and classes that relate to static analysis of combinations of GrDrawOps and GrPipelines.
Change-Id: I737b901a19d3c67d2ff7f95802fb4df35656beb2
Reviewed-on: https://skia-review.googlesource.com/6199
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/ops/GrDrawVerticesOp.cpp')
-rw-r--r-- | src/gpu/ops/GrDrawVerticesOp.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/gpu/ops/GrDrawVerticesOp.cpp b/src/gpu/ops/GrDrawVerticesOp.cpp index c6ae1c1efa..12c2a0bdbb 100644 --- a/src/gpu/ops/GrDrawVerticesOp.cpp +++ b/src/gpu/ops/GrDrawVerticesOp.cpp @@ -71,28 +71,25 @@ GrDrawVerticesOp::GrDrawVerticesOp(GrColor color, GrPrimitiveType primitiveType, this->setBounds(bounds, HasAABloat::kNo, zeroArea); } -void GrDrawVerticesOp::computePipelineOptimizations(GrInitInvariantOutput* color, - GrInitInvariantOutput* coverage, - GrBatchToXPOverrides* overrides) const { - // When this is called there is only one mesh. +void GrDrawVerticesOp::getPipelineAnalysisInput(GrPipelineAnalysisDrawOpInput* input) const { if (fVariableColor) { - color->setUnknownFourComponents(); + input->pipelineColorInput()->setUnknownFourComponents(); } else { - color->setKnownFourComponents(fMeshes[0].fColor); + input->pipelineColorInput()->setKnownFourComponents(fMeshes[0].fColor); } - coverage->setKnownSingleComponent(0xff); + input->pipelineCoverageInput()->setKnownSingleComponent(0xff); } -void GrDrawVerticesOp::initBatchTracker(const GrXPOverridesForBatch& overrides) { +void GrDrawVerticesOp::applyPipelineOptimizations(const GrPipelineOptimizations& optimizations) { SkASSERT(fMeshes.count() == 1); GrColor overrideColor; - if (overrides.getOverrideColorIfSet(&overrideColor)) { + if (optimizations.getOverrideColorIfSet(&overrideColor)) { fMeshes[0].fColor = overrideColor; fMeshes[0].fColors.reset(); fVariableColor = false; } - fCoverageIgnored = !overrides.readsCoverage(); - if (!overrides.readsLocalCoords()) { + fCoverageIgnored = !optimizations.readsCoverage(); + if (!optimizations.readsLocalCoords()) { fMeshes[0].fLocalCoords.reset(); } } |