diff --git a/src/core/SkGlyphRunPainter.cpp b/src/core/SkGlyphRunPainter.cpp index 94f373acf8..c6f9806232 100644 --- a/src/core/SkGlyphRunPainter.cpp +++ b/src/core/SkGlyphRunPainter.cpp @@ -256,11 +256,6 @@ auto SkGlyphRunListPainter::ensureBuffers(const SkGlyphRunList& glyphRunList) -> return ScopedBuffers(this, size); } -SkGlyphRunListPainter::ScopedBuffers -SkGlyphRunListPainter::ensureBuffers(const SkGlyphRun& glyphRun) { - return ScopedBuffers(this, glyphRun.runSize()); -} - #if SK_SUPPORT_GPU // -- GrTextContext -------------------------------------------------------------------------------- SkPMColor4f generate_filtered_color(const SkPaint& paint, const GrColorInfo& colorInfo) { diff --git a/src/core/SkGlyphRunPainter.h b/src/core/SkGlyphRunPainter.h index 5866a9f52c..b2d50ab04f 100644 --- a/src/core/SkGlyphRunPainter.h +++ b/src/core/SkGlyphRunPainter.h @@ -102,9 +102,6 @@ private: ScopedBuffers SK_WARN_UNUSED_RESULT ensureBuffers(const SkGlyphRunList& glyphRunList); - // TODO: Remove once I can hoist ensureBuffers above the list for loop in all cases. - ScopedBuffers SK_WARN_UNUSED_RESULT ensureBuffers(const SkGlyphRun& glyphRun); - // The props as on the actual device. const SkSurfaceProps fDeviceProps; // The props for when the bitmap device can't draw LCD text.