diff options
Diffstat (limited to 'src/gpu/batches')
-rw-r--r-- | src/gpu/batches/GrDrawPathBatch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/batches/GrDrawPathBatch.h b/src/gpu/batches/GrDrawPathBatch.h index bb76abb26b..91e0e41ee4 100644 --- a/src/gpu/batches/GrDrawPathBatch.h +++ b/src/gpu/batches/GrDrawPathBatch.h @@ -115,6 +115,10 @@ public: const GrPathRange* range() const { return fPathRange.get(); } + void loadGlyphPathsIfNeeded() { + fPathRange.get()->loadPathsIfNeeded<uint16_t>(fIndices.begin(), fIndices.count()); + } + static bool CanMerge(const GrPathRangeDraw& a, const GrPathRangeDraw& b) { return a.transformType() == b.transformType() && a.range() == b.range(); } |