diff options
author | ethannicholas <ethannicholas@google.com> | 2015-11-24 12:10:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-24 12:10:10 -0800 |
commit | ff2103200bad7abcf8929ae22ac78a9f4f725142 (patch) | |
tree | b6fef9998bf11fdfbb9855414e8980cf47a2a4e9 /src/gpu/batches/GrDrawAtlasBatch.cpp | |
parent | 6868c3fccf65d297a64919a7cb74f09780c845c3 (diff) |
New API for computing optimization invariants.
Review URL: https://codereview.chromium.org/1467553002
Diffstat (limited to 'src/gpu/batches/GrDrawAtlasBatch.cpp')
-rw-r--r-- | src/gpu/batches/GrDrawAtlasBatch.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/batches/GrDrawAtlasBatch.cpp b/src/gpu/batches/GrDrawAtlasBatch.cpp index 5ecdc1fb03..3ee8f88e89 100644 --- a/src/gpu/batches/GrDrawAtlasBatch.cpp +++ b/src/gpu/batches/GrDrawAtlasBatch.cpp @@ -12,13 +12,13 @@ #include "SkRandom.h" #include "SkRSXform.h" -void GrDrawAtlasBatch::initBatchTracker(const GrPipelineOptimizations& opt) { +void GrDrawAtlasBatch::initBatchTracker(const GrXPOverridesForBatch& overrides) { SkASSERT(fGeoData.count() == 1); // Handle any color overrides - if (!opt.readsColor()) { + if (!overrides.readsColor()) { fGeoData[0].fColor = GrColor_ILLEGAL; } - if (opt.getOverrideColorIfSet(&fGeoData[0].fColor) && fHasColors) { + if (overrides.getOverrideColorIfSet(&fGeoData[0].fColor) && fHasColors) { size_t vertexStride = sizeof(SkPoint) + sizeof(SkPoint) + (this->hasColors() ? sizeof(GrColor) : 0); uint8_t* currVertex = fGeoData[0].fVerts.begin(); @@ -29,11 +29,11 @@ void GrDrawAtlasBatch::initBatchTracker(const GrPipelineOptimizations& opt) { } // setup batch properties - fColorIgnored = !opt.readsColor(); + fColorIgnored = !overrides.readsColor(); fColor = fGeoData[0].fColor; // We'd like to assert this, but we can't because of GLPrograms test //SkASSERT(init.readsLocalCoords()); - fCoverageIgnored = !opt.readsCoverage(); + fCoverageIgnored = !overrides.readsCoverage(); } static const GrGeometryProcessor* set_vertex_attributes(bool hasColors, |